Fix in item load vc-public link

This commit is contained in:
fbsanchez 2021-05-18 18:50:01 +02:00
parent 074fadda35
commit 8fc438f913
1 changed files with 3 additions and 2 deletions

View File

@ -1072,8 +1072,9 @@ 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)
&& isset($_SERVER['HTTP_REFERER']) === true
&& (strstr($_SERVER['PHP_SELF'], 'mobile/') !== false
|| strstr($_SERVER['HTTP_REFERER'], 'mobile/') !== false)
) {
$mobile_navigation = true;
}