$sql = "SELECT responseID
FROM wcf".WCF_N."_comment_response
WHERE commentID = ?
- ORDER BY time";
+ ORDER BY time ASC, responseID ASC";
$statement = WCF::getDB()->prepareStatement($sql, 5);
$commentData = array();
throw new SplitNodeException();
}
}
-
$sql = "SELECT responseID
FROM wcf".WCF_N."_comment_response
WHERE commentID = ?
- ORDER BY time ASC";
+ ORDER BY time ASC, responseID ASC";
$statement = WCF::getDB()->prepareStatement($sql, 5);
$statement->execute(array($this->commentID));
$responseIDs = array();
$sql = "SELECT responseID
FROM wcf".WCF_N."_comment_response
WHERE commentID = ?
- ORDER BY responseID ASC";
- $statement = WCF::getDB()->prepareStatement($sql, 3);
+ ORDER BY time ASC, responseID ASC";
+ $statement = WCF::getDB()->prepareStatement($sql, 5);
$statement->execute(array($response->commentID));
$responseIDs = array();
while ($responseID = $statement->fetchColumn()) $responseIDs[] = $responseID;