Skip to content

Commit

Permalink
Fix: error callback and log shows only when SaveStat is active
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdnepro committed May 27, 2022
1 parent d1a0f83 commit 9ab8f55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,15 +612,15 @@ protected function rawQuery(string $query)
if (!$res) {
$error = mysqli_error($this->instance);
$this->stats[$key]['error'] = $error;
$this->cutStats();

$this->log_error($query);
$this->ShowError();
} else {
$this->stats[$key]['rows'] = $this->instance->affected_rows;
}
$this->cutStats();
}
if (!$res) {
$this->log_error($query);
$this->ShowError();
}
return $res;
}

Expand Down

0 comments on commit 9ab8f55

Please sign in to comment.