Check if table exists

This commit is contained in:
Philipp Holzer 2023-01-01 22:09:40 +01:00
parent 88b3effc18
commit 4585335db9
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432

View 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 " .