aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index a3ef66928..7cd11bc04 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -511,8 +511,8 @@
if ($submenu_register = get_register('submenu')) {
foreach($submenu_register as $item) {
-
- if (substr_count($_SERVER['REQUEST_URI'], $item->value)) {
+
+ if (substr_count($item->value, $_SERVER['REQUEST_URI'])) {
$selected = true;
} else {
$selected = false;