From f2942a7f06a8ff3bf2fef846514684c25e67ea9b Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Mon, 8 Oct 2007 23:56:14 +0000 Subject: fix unsetting CALC_FOUND_ROWS if it's set to false or null --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi.class b/it_dbi.class index a18b9ed..b2b7f0e 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -464,8 +464,8 @@ function select($query = null) { $calc_found_rows = true; $what = 'SQL_CALC_FOUND_ROWS '.$what; - unset($query['CALC_FOUND_ROWS']); } + unset($query['CALC_FOUND_ROWS']); # Always unset, so CALC_FOUND_ROWS => false doesn't generate bogus query $nofetch = $this->_nofetch = $query['NOFETCH']; unset($query['NOFETCH']); -- cgit v1.2.3