Commit 2f393aaf authored by Dries's avatar Dries
Browse files

- Fixed glitch in _user_categories(). Reported by Steven Mansour.

parent 47ef2e21
......@@ -1648,12 +1648,12 @@ function _user_categories() {
foreach (module_list() as $module) {
if ($data = module_invoke($module, 'user', 'categories')) {
foreach ($data as $category) {
$categories[$category['weight']] = $category;
}
$categories = array_merge($data, $categories);
}
}
usort($categories, '_user_sort');
return $categories;
}
......
......@@ -1648,12 +1648,12 @@ function _user_categories() {
foreach (module_list() as $module) {
if ($data = module_invoke($module, 'user', 'categories')) {
foreach ($data as $category) {
$categories[$category['weight']] = $category;
}
$categories = array_merge($data, $categories);
}
}
usort($categories, '_user_sort');
return $categories;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment