|
|
@@ -1406,7 +1406,7 @@ class HelperUserInvoice
|
|
|
$params = ["from" => $from, "to" => $to, "factures" => $allFactures];
|
|
|
$postFields = json_encode($params);
|
|
|
$crossShoppingFactures = $this->curlRunner('bookingapi/getPrintedFacturesRefs', $postFields, 'POST', true);
|
|
|
- if ($crossShoppingFactures !== '') {
|
|
|
+ if (!empty($crossShoppingFactures)) {
|
|
|
$sql = "SELECT rowid FROM llx_facture WHERE ref IN ($crossShoppingFactures)";
|
|
|
$result = $this->db->query($sql);
|
|
|
if ($this->db->num_rows($result) > 0) {
|