Skip to content

Commit

Permalink
Merge pull request #10970 from cdallagnola/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
eldy committed Apr 8, 2019
2 parents da6c5b5 + c2127a6 commit 9a09949
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion htdocs/cashdesk/class/Facturation.class.php
Expand Up @@ -142,7 +142,11 @@ public function ajoutArticle()
$this->montantRemise($montant_remise_ht);

$newcartarray=$_SESSION['poscart'];
$i=count($newcartarray);

$i = 0;
if (!is_null($newcartarray) && !empty($newcartarray)) {
$i=count($newcartarray);
}

$newcartarray[$i]['id']=$i;
$newcartarray[$i]['ref']=$product->ref;
Expand Down

0 comments on commit 9a09949

Please sign in to comment.