From 6c35af310933df3f96c6139f97609498fdc8033e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 8 Oct 2020 18:08:35 +0200 Subject: [PATCH] Fix PHP warning about undefined constant SELF (routes.php) --- src/includes/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/routes.php b/src/includes/routes.php index 64494ccc..a662efa2 100644 --- a/src/includes/routes.php +++ b/src/includes/routes.php @@ -167,7 +167,7 @@ function handle_global_search($request) { $onlyOneObject = false; $pages=array(); foreach ($LSaccess as $LSobject => $label) { - if ( $LSobject == SELF || !LSsession :: loadLSobject($LSobject) ) + if ( $LSobject == "SELF" || !LSsession :: loadLSobject($LSobject) ) continue; if (!LSconfig::get("LSobjects.$LSobject.globalSearch", true, 'bool')) continue;