don't try to globalsearch specific 'settings' search
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user