- Timestamp:
- 05/06/08 14:25:43 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/punbb-1.3-dev/upload/include/functions.php
r1611 r1614 2441 2441 echo '<p><em>The error occurred on line '.$line.' in '.$file.'</em></p>'."\n"; 2442 2442 2443 $db_error = isset($GLOBALS[' db']) ? $GLOBALS['db']->error() : array();2443 $db_error = isset($GLOBALS['pun_db']) ? $GLOBALS['pun_db']->error() : array(); 2444 2444 if (!empty($db_error['error_msg'])) 2445 2445 { … … 2461 2461 2462 2462 // 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(); 2465 2465 2466 2466 exit;
