diff options
author | admin <devnull@localhost> | 2006-09-19 06:56:14 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-19 06:56:14 +0200 |
commit | 46402b00b8b67c2bd1de380ca14a411118b6f0ff (patch) | |
tree | 5d21f913c5986f191c808891e4ee40e5db29ad34 /system | |
parent | 89a8b9700cd8b27da1f27a18ab5f9d4c5ca2cef4 (diff) |
Diffstat (limited to 'system')
-rw-r--r-- | system/drivers/DB_mysqli.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/system/drivers/DB_mysqli.php b/system/drivers/DB_mysqli.php index 8bea60444..49adb5cc3 100644 --- a/system/drivers/DB_mysqli.php +++ b/system/drivers/DB_mysqli.php @@ -89,7 +89,12 @@ class CI_DB_mysqli extends CI_DB { { $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; } |