[geeklog-cvs] geeklog: DB_query has never returned -1 on failure ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Aug 28 11:08:52 EDT 2011


changeset 8357:8ba83d861a58
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8ba83d861a58
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jun 18 09:47:25 2011 +0200
description:
DB_query has never returned -1 on failure ...

diffstat:

 system/lib-security.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 590a8ca3078a -r 8ba83d861a58 system/lib-security.php
--- a/system/lib-security.php	Sun Aug 28 09:04:02 2011 +0200
+++ b/system/lib-security.php	Sat Jun 18 09:47:25 2011 +0200
@@ -113,7 +113,7 @@
     $result = DB_query("SELECT ug_main_grp_id,grp_name FROM {$_TABLES["group_assignments"]},{$_TABLES["groups"]}"
             . " WHERE grp_id = ug_main_grp_id AND ug_uid = $uid",1);
 
-    if ($result == -1) {
+    if ($result === false) {
         return $groups;
     }
 



More information about the geeklog-cvs mailing list