From: Joshua Rüsweg Date: Thu, 2 Aug 2018 13:05:25 +0000 (+0200) Subject: Correct delete outdated likes X-Git-Tag: 5.2.0_Alpha_1~364^2~101^2~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=182f1384972dc2ad1ce8ecafe2a98c32ce6b35bd;p=GitHub%2FWoltLab%2FWCF.git Correct delete outdated likes See #2508 --- diff --git a/wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php b/wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php index 5e5a95b665..a8117dbd7e 100644 --- a/wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php +++ b/wcfsetup/install/files/acp/update-com.woltlab.wcf_3.2_reactionUpdate.php @@ -42,7 +42,7 @@ try { ]); // delete outdated likes, which aren't likes nor dislikes (normally none should exist) - $sql = "DELETE wcf1_like WHERE reactionTypeID = 0"; + $sql = "DELETE FROM wcf1_like WHERE reactionTypeID = 0"; $statement = WCF::getDB()->prepareStatement(str_replace('wcf1_', 'wcf'.WCF_N.'_', $sql)); // add foreign key