From 4a28b1211106f2bc1458db918fbf0e92134f8520 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 18 Jul 2014 10:11:41 +0200 Subject: [PATCH] Keep index association when sorting assigned labels --- wcfsetup/install/files/lib/system/label/LabelHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php index 762fcab5ba..c374d7ff2d 100644 --- a/wcfsetup/install/files/lib/system/label/LabelHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/LabelHandler.class.php @@ -251,7 +251,7 @@ class LabelHandler extends SingletonFactory { // order label ids by label group $labelGroups =& $this->labelGroups; foreach ($data as &$labels) { - usort($labels, function($a, $b) use($labelGroups) { + uasort($labels, function($a, $b) use($labelGroups) { $groupA = $labelGroups['groups'][$a->groupID]; $groupB = $labelGroups['groups'][$b->groupID]; -- 2.20.1