Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 11, 2024
1 parent 15d556f commit 57a140f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/sellyoursaasutils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4504,7 +4504,7 @@ public function sellyoursaasRemoteAction($remoteaction, $object, $appusername =
// Test if there is template invoice linked
$contract->fetchObjectLinked(null, '', null, '', 'OR', 1, 'sourcetype', 'facturerec');

if (is_array($contract->linkedObjects['facturerec']) && count($contract->linkedObjects['facturerec']) > 0) {
if (!empty($contract->linkedObjects['facturerec']) && is_array($contract->linkedObjects['facturerec']) && count($contract->linkedObjects['facturerec']) > 0) {
//dol_sort_array($contract->linkedObjects['facture'], 'date');
$sometemplateinvoice=0;
$lasttemplateinvoice=null;
Expand Down

0 comments on commit 57a140f

Please sign in to comment.