diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index c391917731..7da6e26426 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -1072,8 +1072,8 @@ class Item extends CachedModel $mobile_navigation = false; if (isset($_SERVER['PHP_SELF']) === true - && (strstr($_SERVER['PHP_SELF'], 'mobile/') !== false - || strstr($_SERVER['HTTP_REFERER'], 'mobile/') !== false) + && (strstr(($_SERVER['PHP_SELF'] ?? ''), 'mobile/') !== false + || strstr(($_SERVER['HTTP_REFERER'] ?? ''), 'mobile/') !== false) ) { $mobile_navigation = true; }