From: Matthias Schmidt Date: Wed, 19 Mar 2014 19:13:59 +0000 (+0100) Subject: Fixes update script X-Git-Tag: 2.0.4~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e279f202dfbc51ced097ddbff5668dd4bc85c16;p=GitHub%2FWoltLab%2FWCF.git Fixes update script --- 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); +}