Skip to content

Commit 64b2a29

Browse files
authored
php error on takepos admin
1 parent 38b752f commit 64b2a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htdocs/takepos/receipt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
top_htmlhead('', '', 1);
8181

82-
if ((string) $place != '') {
82+
if ((string) $place != '' && !empty($_SESSION["takeposterminal"])) {
8383
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."facture";
8484
$sql .= " WHERE ref = '(PROV-POS".$db->escape($_SESSION["takeposterminal"]."-".$place).")'";
8585
$sql .= " AND entity IN (".getEntity('invoice').")";

0 commit comments

Comments
 (0)