Changeset 8006

Show
Ignore:
Timestamp:
08/07/09 20:11:49 (1 year ago)
Author:
p_lindheimer
Message:

add sql() function definition if not there

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.6/upgrades/2.6.0beta1/tables.php

    r7992 r8006  
    11<?php 
     2if (!function_exists('sql')) { 
     3  function sql($sql,$type="query",$fetchmode=null) { 
     4          global $db; 
     5          $results = $db->$type($sql,$fetchmode); 
     6          if(DB::IsError($results)) { 
     7                  die($results->getDebugInfo() . "SQL - <br /> $sql" ); 
     8          } 
     9          return $results; 
     10  } 
     11} 
    212 
    313function encrypt_passwords()