Fix PHP warning about undefined constant SELF (routes.php)

This commit is contained in:
Benjamin Renard 2020-10-08 18:08:35 +02:00
parent e0bf5a73f5
commit 6c35af3109

View file

@ -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;