Merge pull request #32 from wen1014/master

warning bug fix
This commit is contained in:
Whale
2021-02-23 23:24:45 +08:00
committed by GitHub

View File

@@ -84,6 +84,7 @@ class DB
* @throws DbException
*/
public static function rawQuery(string $line, $params = [], $fetch_mode = ZM_DEFAULT_FETCH_MODE) {
if (!is_array($params)) $params = [$params];
Console::debug("MySQL: " . $line . " | " . implode(", ", $params));
try {
$conn = SqlPoolStorage::$sql_pool->get();