diff options
author | Christian Weber | 2007-10-08 23:56:14 +0000 |
---|---|---|
committer | Christian Weber | 2007-10-08 23:56:14 +0000 |
commit | f2942a7f06a8ff3bf2fef846514684c25e67ea9b (patch) | |
tree | 21793c9f1e84900842824d76f4d26c4b64e61767 | |
parent | 19f7b70d0b79cf75bf47843389ba4d39379e8b76 (diff) | |
download | itools-f2942a7f06a8ff3bf2fef846514684c25e67ea9b.tar.gz itools-f2942a7f06a8ff3bf2fef846514684c25e67ea9b.tar.bz2 itools-f2942a7f06a8ff3bf2fef846514684c25e67ea9b.zip |
fix unsetting CALC_FOUND_ROWS if it's set to false or null
-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 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']); |