don't try to globalsearch specific 'settings' search

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-03 18:56:40 +02:00
parent a4b780e7f7
commit 64994e6444

View File

@@ -88,8 +88,12 @@ class GlobalSearch
if (preg_match('/^([a-z]+):$/', $searchtext, $matches)) { if (preg_match('/^([a-z]+):$/', $searchtext, $matches)) {
$module = $matches[1]; $module = $matches[1];
if ($matches[1] == 'settings') {
break;
} else {
continue; continue;
} }
}
// admin // admin
if (isset($userinfo['adminsession']) && $userinfo['adminsession'] == 1) { if (isset($userinfo['adminsession']) && $userinfo['adminsession'] == 1) {