Minor fix

This commit is contained in:
fbsanchez 2021-05-19 10:13:25 +02:00
parent 8fc438f913
commit 4b114e63a4

View File

@ -1071,10 +1071,8 @@ class Item extends CachedModel
$mobile_navigation = false; $mobile_navigation = false;
if (isset($_SERVER['PHP_SELF']) === true if (strstr(($_SERVER['PHP_SELF'] ?? ''), 'mobile/') !== false
&& isset($_SERVER['HTTP_REFERER']) === true || strstr(($_SERVER['HTTP_REFERER'] ?? ''), 'mobile/') !== false
&& (strstr($_SERVER['PHP_SELF'], 'mobile/') !== false
|| strstr($_SERVER['HTTP_REFERER'], 'mobile/') !== false)
) { ) {
$mobile_navigation = true; $mobile_navigation = true;
} }