Skip to content

Commit

Permalink
Bugfix: Catch query errors (Open-Web-Analytics#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maaiins authored Mar 6, 2020
1 parent c0a128b commit a07b253
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/db/owa_db_mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ function get_results( $sql ) {
}

//$this->result = array();

if (!$this->new_result) {
return null;
}

while ( $row = mysqli_fetch_assoc( $this->new_result ) ) {

array_push($this->result, $row);
Expand Down

0 comments on commit a07b253

Please sign in to comment.