Skip to content

Commit

Permalink
Do not set undefined code for Report.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Oct 12, 2023
1 parent 9f65223 commit 960e8a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AbraFlexi/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public function updateApiURL() {
$this->unsetDataValue('kod');
$result = parent::updateApiURL();
}
$this->setDataValue('kod', $code);
if(strlen($code)){
$this->setDataValue('kod', $code);
}
}

}

0 comments on commit 960e8a6

Please sign in to comment.