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!');}