commit | 46402b00b8b67c2bd1de380ca14a411118b6f0ff | [log] [tgz] |
---|---|---|
author | admin <devnull@localhost> | Tue Sep 19 04:56:14 2006 +0000 |
committer | admin <devnull@localhost> | Tue Sep 19 04:56:14 2006 +0000 |
tree | 5d21f913c5986f191c808891e4ee40e5db29ad34 | |
parent | 89a8b9700cd8b27da1f27a18ab5f9d4c5ca2cef4 [diff] |
diff --git a/system/drivers/DB_mysqli.php b/system/drivers/DB_mysqli.php index 8bea604..49adb5c 100644 --- a/system/drivers/DB_mysqli.php +++ b/system/drivers/DB_mysqli.php
@@ -89,7 +89,12 @@ { $sql = $this->_prep_query($sql); $result = @mysqli_query($this->conn_id, $sql); - mysqli_next_result($this->conn_id); + + // We only advance the result pointer if there isn't an error + if (mysqli_errno($this->conn_id) == 0) + { + mysqli_next_result($this->conn_id); + } return $result; }