From 7d5306ea268033b92cac8496c2d5efdb16b9f6c6 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Fri, 28 Jun 2013 14:37:02 -0400 Subject: [PATCH] - Lists can now be created from more than one database table (including sorting and searching) // needs more testing! --- interface/lib/classes/db_mysql.inc.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/lib/classes/db_mysql.inc.php b/interface/lib/classes/db_mysql.inc.php index b815417..4672998 100644 --- a/interface/lib/classes/db_mysql.inc.php +++ b/interface/lib/classes/db_mysql.inc.php @@ -190,11 +190,11 @@ // returns number of rows returned by the last select query public function numRows() { - return $this->queryId->num_rows; + return intval($this->queryId->num_rows); } public function affectedRows() { - return $this->queryId->affected_rows; + return intval($this->queryId->affected_rows); } // returns mySQL insert id -- Gitblit v1.9.1