Skip to content

Commit

Permalink
Solucionado bug con php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoRazorX committed Jan 29, 2025
1 parent 76e2493 commit f05d05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Model/Base/Receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function test(): bool
}

// comprobamos la fecha de vencimiento
if (strtotime($this->vencimiento) < strtotime($this->fecha)) {
if (empty($this->vencimiento) || strtotime($this->vencimiento) < strtotime($this->fecha)) {
$this->vencimiento = $this->fecha;
}

Expand Down

0 comments on commit f05d05a

Please sign in to comment.