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