mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
fix some stupid bug
This commit is contained in:
@@ -69,7 +69,7 @@ class DB
|
||||
}
|
||||
}
|
||||
|
||||
public static function rawQuery(string $line, $params) {
|
||||
public static function rawQuery(string $line, $params = []) {
|
||||
if (ZMBuf::get("sql_log") === true) {
|
||||
$starttime = microtime(true);
|
||||
}
|
||||
@@ -117,4 +117,8 @@ class DB
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function isTableExists($table) {
|
||||
return in_array($table, self::$table_list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user