From 8fac606e76108880247b8b7f6644be53fdee9135 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 3 Jul 2013 11:43:58 +0000 Subject: To not try to get mysqli_num_rows when using unbuffered queries as this produces a warning, return true instead --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') 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) { -- cgit v1.2.3