Changeset 1614

Show
Ignore:
Timestamp:
05/06/08 14:25:43 (3 months ago)
Author:
Anatoly
Message:

Another fix of $db.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/include/functions.php

    r1611 r1614  
    24412441                                echo '<p><em>The error occurred on line '.$line.' in '.$file.'</em></p>'."\n"; 
    24422442 
    2443                         $db_error = isset($GLOBALS['db']) ? $GLOBALS['db']->error() : array(); 
     2443                        $db_error = isset($GLOBALS['pun_db']) ? $GLOBALS['pun_db']->error() : array(); 
    24442444                        if (!empty($db_error['error_msg'])) 
    24452445                        { 
     
    24612461 
    24622462        // If a database connection was established (before this error) we close it 
    2463         if (isset($GLOBALS['db'])) 
    2464                 $GLOBALS['db']->close(); 
     2463        if (isset($GLOBALS['pun_db'])) 
     2464                $GLOBALS['pun_db']->close(); 
    24652465 
    24662466        exit;