From 9e279f202dfbc51ced097ddbff5668dd4bc85c16 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 19 Mar 2014 20:13:59 +0100 Subject: [PATCH] Fixes update script --- wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php index 7917407b04..d408c0c0c5 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php @@ -22,4 +22,6 @@ foreach ($likeObjectList as $likeObject) { $deletedResponseIDs[] = $likeObject->objectID; } -LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment.response', $deletedResponseIDs); +if (!empty($deletedResponseIDs)) { + LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment.response', $deletedResponseIDs); +} -- 2.20.1