mirror of
https://github.com/ulfgebhardt/system.git
synced 2026-02-06 09:55:45 +00:00
QI fix for failed queries
This commit is contained in:
parent
6ded7a05b3
commit
e786f305b1
@ -26,8 +26,7 @@ class QP {
|
|||||||
|
|
||||||
public static function QI($params,$params_mys = null){
|
public static function QI($params,$params_mys = null){
|
||||||
$qq = self::QQ($params,$params_mys);
|
$qq = self::QQ($params,$params_mys);
|
||||||
return $qq->affectedRows() != 0;
|
return $qq->affectedRows() != (0||null);}
|
||||||
}
|
|
||||||
//override this
|
//override this
|
||||||
protected static function query(){
|
protected static function query(){
|
||||||
throw new \SYSTEM\LOG\ERROR('query function of your QP Class not overwritten!');}
|
throw new \SYSTEM\LOG\ERROR('query function of your QP Class not overwritten!');}
|
||||||
|
|||||||
@ -25,8 +25,7 @@ class QQ {
|
|||||||
return self::QQ()->next();}
|
return self::QQ()->next();}
|
||||||
public static function QI($params,$params_mys = null){
|
public static function QI($params,$params_mys = null){
|
||||||
$qq = self::QQ($params,$params_mys);
|
$qq = self::QQ($params,$params_mys);
|
||||||
return $qq->affectedRows() != 0;
|
return $qq->affectedRows() != (0||null);}
|
||||||
}
|
|
||||||
//override this
|
//override this
|
||||||
protected static function query(){
|
protected static function query(){
|
||||||
throw new \SYSTEM\LOG\ERROR('query function of your QQ Class not overwritten!');}
|
throw new \SYSTEM\LOG\ERROR('query function of your QQ Class not overwritten!');}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user