[geeklog-cvs] geeklog: Ensure backward compatibility for DB_fetchArray(), sinc...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Tue May 1 04:14:02 EDT 2012


changeset 8665:dfb5820900c9
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/dfb5820900c9
user: Dirk Haun <dirk at haun-online.de>
date: Tue May 01 10:13:55 2012 +0200
description:
Ensure backward compatibility for DB_fetchArray(), since MySQLi returns NULL where the old MySQL binding returned false

diffstat:

 system/databases/mysqli.class.php |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 3416bbe8c49e -r dfb5820900c9 system/databases/mysqli.class.php
--- a/system/databases/mysqli.class.php	Mon Apr 30 21:50:30 2012 +0100
+++ b/system/databases/mysqli.class.php	Tue May 01 10:13:55 2012 +0200
@@ -600,7 +600,9 @@
             $result_type = MYSQLI_ASSOC;
         }
 
-        return $recordset->fetch_array($result_type);
+        $result = $recordset->fetch_array($result_type);
+
+        return ($result === NULL) ? false : $result;
     }
 
     /**



More information about the geeklog-cvs mailing list