  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: database.php 1685 2007-09-03 15:30:45Z hpdl $ |
| |
| 3 | + | $Id: database.php 1845 2009-02-27 00:19:37Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
62 | 62 | | } |
| |
63 | 63 | | |
| |
64 | 64 | | function setError($error, $error_number = '', $query = '') { |
  |
65 | | - | global $messageStack; |
| |
| 65 | + | global $osC_MessageStack; |
|
66 | 66 | | |
| |
67 | 67 | | if ($this->error_reporting === true) { |
| |
68 | 68 | | $this->error = $error; |
| |
69 | 69 | | $this->error_number = $error_number; |
| |
70 | 70 | | $this->error_query = $query; |
| |
71 | 71 | | |
  |
72 | | - | if (isset($messageStack)) { |
| |
73 | | - | $messageStack->add('debug', $this->getError()); |
| |
| 72 | + | if (isset($osC_MessageStack)) { |
| |
| 73 | + | $osC_MessageStack->add('debug', $this->getError()); |
  |
74 | 74 | | } |
| |
75 | 75 | | } |
| |
76 | 76 | | } |