Skip to content

Commit

Permalink
Adds condition to check if parameter is of the proper type
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Oct 17, 2023
1 parent 3e54a9d commit 74ed329
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ public function save(array $params = [])
}
}


if (!is_array($params)){
return false;
}

return parent::save($params);
}
Expand Down

0 comments on commit 74ed329

Please sign in to comment.