class XDB
{
private static $mysqli = null;
+ private static $fatalErrors = true;
public static function connect()
{
return true;
}
+ public static function setNonFatalError()
+ {
+ self::$fatalErrors = false;
+ }
+
public static function _prepare($args)
{
global $globals;
. "--------------------------------------------------------------------------------\n");
fclose($file);
}
- Platal::page()->kill($text);
- exit;
+ if (self::$fatalErrors) {
+ Platal::page()->kill($text);
+ exit;
+ } else {
+ throw new Exception($text . " :\n" . $query);
+ }
}
return $res;
}