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

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').")";