From: Marcel Werk Date: Thu, 20 Feb 2014 20:39:42 +0000 (+0100) Subject: Added missing sort order in like details X-Git-Tag: 2.0.3~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cad6116dda48aad01adac6717d00f22ebddfc0fb;p=GitHub%2FWoltLab%2FWCF.git Added missing sort order in like details --- diff --git a/wcfsetup/install/files/lib/data/like/LikeAction.class.php b/wcfsetup/install/files/lib/data/like/LikeAction.class.php index cb14d7f164..b6a99bda6b 100644 --- a/wcfsetup/install/files/lib/data/like/LikeAction.class.php +++ b/wcfsetup/install/files/lib/data/like/LikeAction.class.php @@ -60,10 +60,11 @@ class LikeAction extends AbstractDatabaseObjectAction { * @return array */ public function getLikeDetails() { - $sql = "SELECT userID, likeValue - FROM wcf".WCF_N."_like - WHERE objectID = ? - AND objectTypeID = ?"; + $sql = "SELECT userID, likeValue + FROM wcf".WCF_N."_like + WHERE objectID = ? + AND objectTypeID = ? + ORDER BY time DESC"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( $this->parameters['data']['objectID'],