Skip to content

Commit

Permalink
Merge pull request #6 from axiostudio/develop
Browse files Browse the repository at this point in the history
Bug Fixing on Id
  • Loading branch information
AP - Axio Studio committed Jan 26, 2024
2 parents 57af02a + 06a4911 commit a0f4743
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 a0f4743

Please sign in to comment.