]> git.mxchange.org Git - friendica.git/commitdiff
Skip invalid table names
authorMichael <heluecht@pirati.ca>
Fri, 15 May 2020 15:16:34 +0000 (15:16 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 15 May 2020 15:16:34 +0000 (15:16 +0000)
tests/DatabaseTestTrait.php

index 5f753f3152e3d4688ea2505165240fbe9dcd7c19..36636feabd57701d626d392a75d051733521a786 100644 (file)
@@ -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;
                        }