php error on takepos admin (#34660)
This commit is contained in:
parent
621b91097a
commit
95027c5dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -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').")";
|
||||
|
|
|
|||
Loading…
Reference in a new issue