Update viewimage.php

This commit is contained in:
Laurent Destailleur 2020-05-15 14:14:05 +02:00 committed by GitHub
parent 991996697d
commit 3295b0d669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ if (!empty($hashp))
$accessallowed = 1; // When using hashp, link is public so we force $accessallowed $accessallowed = 1; // When using hashp, link is public so we force $accessallowed
$sqlprotectagainstexternals = ''; $sqlprotectagainstexternals = '';
} }
elseif ($conf->global->TAKEPOS_AUTO_ORDER && isset($_GET["publictakepos"])) elseif (! empty($conf->global->TAKEPOS_AUTO_ORDER) && isset($_GET["publictakepos"]))
{ {
$accessallowed = 1; // Only if TakePOS Public Auto Order is enabled and received publictakepos variable $accessallowed = 1; // Only if TakePOS Public Auto Order is enabled and received publictakepos variable
} }