A free open source IT asset/license management system
Adds condition to check if parameter is of the proper type
Ivan Nieto Vivanco74ed32903f04
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 1ce38bca01..a3e00ee941 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -220,7 +220,9 @@ class Asset extends Depreciable}}-+ if (!is_array($params)){+ return false;+ }return parent::save($params);}