From: Michael Date: Fri, 15 May 2020 15:16:34 +0000 (+0000) Subject: Skip invalid table names X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8868b7f8d938463169e6bdf98cf7d60f38805b79;p=friendica.git Skip invalid table names --- diff --git a/tests/DatabaseTestTrait.php b/tests/DatabaseTestTrait.php index 5f753f3152..36636feabd 100644 --- a/tests/DatabaseTestTrait.php +++ b/tests/DatabaseTestTrait.php @@ -61,7 +61,7 @@ trait DatabaseTestTrait $data = include $fixture; foreach ($data as $tableName => $rows) { - if (!is_array($rows)) { + if (!is_array($rows) && !is_numeric($tableName)) { $dba->p('TRUNCATE TABLE `' . $tableName . '``'); continue; }