From 4585335db93777463bf917604a8c8339b61eac91 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 1 Jan 2023 22:09:40 +0100 Subject: [PATCH] Check if table exists --- update.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update.php b/update.php index b9edbabd75..ad33dde012 100644 --- a/update.php +++ b/update.php @@ -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 " .