php error on takepos admin (#34660)

This commit is contained in:
Charlène Benke 2025-06-29 12:45:52 +02:00 committed by GitHub
parent 621b91097a
commit 95027c5dfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ if (!$user->hasRight('takepos', 'run')) {
top_htmlhead('', '', 1);
if ((string) $place != '') {
if ((string) $place != '' && !empty($_SESSION["takeposterminal"])) {
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."facture";
$sql .= " WHERE ref = '(PROV-POS".$db->escape($_SESSION["takeposterminal"]."-".$place).")'";
$sql .= " AND entity IN (".getEntity('invoice').")";