  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: mysql.php 554 2006-04-29 16:26:53Z hpdl $ |
| |
| 3 | + | $Id: mysql.php 757 2006-08-23 12:22:54Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
99 | 99 | | $debug = true; |
| |
100 | 100 | | } |
| |
101 | 101 | | |
  |
102 | | - | if (tep_not_null(SERVICE_DEBUG_EXECUTION_TIME_LOG) && (SERVICE_DEBUG_LOG_DB_QUERIES == '1')) { |
| |
| 102 | + | if (!osc_empty(SERVICE_DEBUG_EXECUTION_TIME_LOG) && (SERVICE_DEBUG_LOG_DB_QUERIES == '1')) { |
|
103 | 103 | | @error_log('QUERY ' . $query . "\n", 3, SERVICE_DEBUG_EXECUTION_TIME_LOG); |
| |
104 | 104 | | } |
| |
105 | 105 | | } elseif ($debug === true) { |
| |
|
|
 |
… |
|
158 | 158 | | $num_rows = $this->numberOfRows($resource); |
| |
159 | 159 | | |
| |
160 | 160 | | if ($num_rows > 0) { |
  |
161 | | - | $random_row = tep_rand(0, ($num_rows - 1)); |
| |
| 161 | + | $random_row = osc_rand(0, ($num_rows - 1)); |
  |
162 | 162 | | |
| |
163 | 163 | | $this->dataSeek($random_row, $resource); |
| |
164 | 164 | | |