Check if table exists
authorPhilipp <admin@philipp.info>
Sun, 1 Jan 2023 21:09:40 +0000 (22:09 +0100)
committerPhilipp <admin@philipp.info>
Tue, 3 Jan 2023 13:22:05 +0000 (14:22 +0100)
update.php

index b9edbab..ad33dde 100644 (file)
@@ -1148,6 +1148,10 @@ function update_1502()
 
 function update_1505()
 {
+       if (!DBStructure::existsTable('config')) {
+               return Update::SUCCESS;
+       }
+
        $conditions = [
                "((`cat`  = ?) AND ((`k` LIKE ?) OR (`k` = ?) OR (`k` LIKE ?) OR (`k` = ?))) OR " .
                "((`cat` != ?) AND  (`k` LIKE ?)) OR " .