Skip to content

Commit

Permalink
Bug Fixing on IdCodice
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Pollastri committed Jan 26, 2024
1 parent 99464ec commit 06a4911
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Models/Id.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class Id extends Model

public function __construct(...$args)
{
$this->IdCodice = $args[0];
if (isset($args[0]) && $args[0]) {
$this->IdCodice = $args[0];
}

$this->IdPaese = (isset($args[1]) && $args[1]) ? $args[1] : Settings::IdPaeseDefault();
}

Expand Down

0 comments on commit 06a4911

Please sign in to comment.