From 9ba2bd07362f7fb475ba542d69b34f733bc79983 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 7 Jan 2021 18:13:40 +0000 Subject: [PATCH] Ensure to only execute this if the table exists --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.php b/update.php index 958e974f9d..ffcfa6a90f 100644 --- a/update.php +++ b/update.php @@ -831,7 +831,7 @@ function pre_update_1377() return Update::FAILED; } - if (!DBA::e("DELETE FROM `diaspora-interaction` WHERE `uri-id` NOT IN (SELECT `id` FROM `item-uri`)")) { + if (DBStructure::existsTable('diaspora-interaction') && !DBA::e("DELETE FROM `diaspora-interaction` WHERE `uri-id` NOT IN (SELECT `id` FROM `item-uri`)")) { return Update::FAILED; }