);
}
+ usort($notifications, function ($a, $b) {
+ if ($a['object']->notificationID == $b['object']->notificationID) {
+ return 0;
+ }
+ else if ($a['object']->notificationID < $b['object']->notificationID) {
+ return -1;
+ }
+
+ return 1;
+ });
+
// insert author
$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_notification_author
(notificationID, authorID, time)
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($field));
+ ksort($this->cache, SORT_NATURAL);
+
foreach ($this->cache as $userID => $fields) {
if (isset($fields[$field])) {
unset($this->cache[$userID][$field]);
WHERE userID = ?
AND field = ?";
$statement = WCF::getDB()->prepareStatement($sql);
+
+ ksort($this->resetFields, SORT_NATURAL);
+
foreach ($this->resetFields as $userID => $fields) {
foreach ($fields as $field) {
$statement->execute(array(
VALUES (?, ?, ?)";
$statement = WCF::getDB()->prepareStatement($sql);
+ ksort($this->updateFields, SORT_NATURAL);
+
foreach ($this->updateFields as $userID => $fieldValues) {
+ ksort($fieldValues, SORT_STRING);
+
foreach ($fieldValues as $field => $fieldValue) {
$statement->execute(array(
$userID,