diff options
author | Christian Schneider | 2013-07-03 11:43:58 +0000 |
---|---|---|
committer | Christian Schneider | 2013-07-03 11:43:58 +0000 |
commit | 8fac606e76108880247b8b7f6644be53fdee9135 (patch) | |
tree | 04b4caa54593f7ce52d9d002005946467e6888a1 | |
parent | b5bb2fe9e49fca040536ab4bf5dc48706d31300d (diff) | |
download | itools-8fac606e76108880247b8b7f6644be53fdee9135.tar.gz itools-8fac606e76108880247b8b7f6644be53fdee9135.tar.bz2 itools-8fac606e76108880247b8b7f6644be53fdee9135.zip |
To not try to get mysqli_num_rows when using unbuffered queries as this produces a warning, return true instead
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index ef193c9..262836a 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -569,7 +569,7 @@ function select(/* $query = array|string, ... */) $this->clear(false); if ($this->_result = $this->query($sql = "SELECT $what FROM $join " . $this->_where($query, $this->_link))) { - $result = mysqli_num_rows($this->_result); + $result = $this->_p['unbuffered'] ? true : mysqli_num_rows($this->_result); if ($calc_found_rows) { |