X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/6df4b8055a0e63b554ed211760ab1aa5cb431306..8cb18100cbd00c2a8bf77302b4393d6675f7be44:/lib/db_mysqli.inc.php?ds=sidebyside diff --git a/lib/db_mysqli.inc.php b/lib/db_mysqli.inc.php index e128d2f..5e5b157 100644 --- a/lib/db_mysqli.inc.php +++ b/lib/db_mysqli.inc.php @@ -82,10 +82,10 @@ class DBMysqli extends DBImpl { } if ($result = $this->con->query($query)) { - while ($row = $result->fetch_object()) { - $all[] = $row->id; + while ($row = $result->fetch_object()) { + $all[] = $row->id; } - } + } return $all; } @@ -139,9 +139,9 @@ class DBMysqli extends DBImpl { $this->changeCharset(); $query = "SELECT * FROM quarantine WHERE mail_id = '$id'"; - if ($result = $this->con->query($query, MYSQLI_USE_RESULT)) { - $row = $result->fetch_object(); - } + if ($result = $this->con->query($query, MYSQLI_USE_RESULT)) { + $row = $result->fetch_object(); + } return $row; }