From: Philipp Date: Sun, 1 Jan 2023 21:09:40 +0000 (+0100) Subject: Check if table exists X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4585335db93777463bf917604a8c8339b61eac91;p=friendica.git Check if table exists --- 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 " .