mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
php error on takepos admin (#34660)
This commit is contained in:
@@ -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').")";
|
||||
|
||||
Reference in New Issue
Block a user