Keep index association when sorting assigned labels
authorMatthias Schmidt <gravatronics@live.com>
Fri, 18 Jul 2014 08:11:41 +0000 (10:11 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 18 Jul 2014 08:11:41 +0000 (10:11 +0200)
wcfsetup/install/files/lib/system/label/LabelHandler.class.php

index 762fcab5ba47cd7a8701c467d8c43c82ea7f2849..c374d7ff2dd6c3224955e7d0e8908386fa3acd5b 100644 (file)
@@ -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];