From f5100c710743e7d62ec1d17a981d65ec3fbe521a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 1 Apr 2015 01:50:06 +0200 Subject: [PATCH] Fix UserNotificationAction::createStackable() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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“ --- .../lib/data/user/notification/UserNotificationAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1