Fixes update script
authorMatthias Schmidt <gravatronics@live.com>
Wed, 19 Mar 2014 19:13:59 +0000 (20:13 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 19 Mar 2014 19:13:59 +0000 (20:13 +0100)
wcfsetup/install/files/acp/update_com.woltlab.wcf_2.0.4.php

index 7917407b04e07234d25152c66a64c3fadf74e598..d408c0c0c58070929c25716c2851aab899700f1c 100644 (file)
@@ -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);
+}