Skip to content

Commit

Permalink
Fixed #83
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed Jan 28, 2024
1 parent 14134e9 commit 475c5c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Zebra_Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -3139,6 +3139,7 @@ public function query($sql, $replacements = '', $cache = false, $calc_rows = fal
if (!$this->_connected()) return false;

unset($this->affected_rows);
unset($this->last_result);

// if $replacements is specified but it's not an array
if ($replacements !== '' && !is_array($replacements))
Expand Down Expand Up @@ -3231,8 +3232,6 @@ public function query($sql, $replacements = '', $cache = false, $calc_rows = fal
// add the 'SQL_CALC_FOUND_ROWS' parameter to the query
$sql = preg_replace('/^(.*?)SELECT/is', '$1SELECT SQL_CALC_FOUND_ROWS', $sql, 1);

if (isset($this->last_result)) unset($this->last_result);

// starts a timer
list($usec, $sec) = explode(' ', microtime());

Expand Down

0 comments on commit 475c5c4

Please sign in to comment.