From: Tim Düsterhus Date: Tue, 31 Mar 2015 23:50:06 +0000 (+0200) Subject: Fix UserNotificationAction::createStackable() X-Git-Tag: 2.1.3~43^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f5100c710743e7d62ec1d17a981d65ec3fbe521a;p=GitHub%2FWoltLab%2FWCF.git Fix UserNotificationAction::createStackable() Use `uksort` instead of `usort` as the keys of the array are userIDs instead of simple ascending numbers. This fixes up commit 8518f3636eae69065e52ff7c75208ed34fa6f87c „Working around a few possible deadlocks by sorting values“ --- diff --git a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php index 4079a70679..02dd847d1d 100644 --- a/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php +++ b/wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php @@ -112,7 +112,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction { ); } - usort($notifications, function ($a, $b) { + uksort($notifications, function ($a, $b) { if ($a['object']->notificationID == $b['object']->notificationID) { return 0; }