소스 검색

curl call fixes getCrossShoppingInvoicesRowidFromFacture()

szollosil 9 달 전
부모
커밋
e37c4ffa44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom/financialreport/class/helper.class.php

+ 1 - 1
custom/financialreport/class/helper.class.php

@@ -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) {