aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 1c80c03a3..9fc3e65f2 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -576,6 +576,7 @@
if ($preselected === false) {
if (substr_count($item->value, $_SERVER['REQUEST_URI'])) {
+ $preselected = $key;
$selected = true;
} else {
$selected = false;