Skip to content

Commit

Permalink
pastaper
Browse files Browse the repository at this point in the history
  • Loading branch information
typhained committed May 15, 2020
1 parent e3f8476 commit 500f465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/CartManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function latestCart()
public function historiqueID($id)
{
$statement = $this->pdo->query("SELECT p.id FROM " . self::TABLE . " p
WHERE p.id_user=$id AND p.etat= 'confirme' ORDER BY date DESC limit 1");
WHERE p.id_user=$id AND p.etat= 'confirme' ORDER BY date DESC, id DESC limit 1");
return $statement->fetch();
}

Expand Down

0 comments on commit 500f465

Please sign in to comment.