From e786f305b115a2551183fdf3264fe16e592da84b Mon Sep 17 00:00:00 2001 From: rylon Date: Mon, 20 Jan 2014 23:42:23 +0100 Subject: [PATCH] QI fix for failed queries --- db/qq/QP.php | 3 +-- db/qq/QQ.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/db/qq/QP.php b/db/qq/QP.php index e666907..b1aa37a 100644 --- a/db/qq/QP.php +++ b/db/qq/QP.php @@ -26,8 +26,7 @@ class QP { public static function QI($params,$params_mys = null){ $qq = self::QQ($params,$params_mys); - return $qq->affectedRows() != 0; - } + return $qq->affectedRows() != (0||null);} //override this protected static function query(){ throw new \SYSTEM\LOG\ERROR('query function of your QP Class not overwritten!');} diff --git a/db/qq/QQ.php b/db/qq/QQ.php index 12b7582..e13823d 100644 --- a/db/qq/QQ.php +++ b/db/qq/QQ.php @@ -25,8 +25,7 @@ class QQ { return self::QQ()->next();} public static function QI($params,$params_mys = null){ $qq = self::QQ($params,$params_mys); - return $qq->affectedRows() != 0; - } + return $qq->affectedRows() != (0||null);} //override this protected static function query(){ throw new \SYSTEM\LOG\ERROR('query function of your QQ Class not overwritten!');}