Adds condition to check if parameter is of the proper type

This commit is contained in:
Ivan Nieto Vivanco
2023-10-17 15:48:51 -06:00
parent 3e54a9d561
commit 74ed32903f
+3 -1
View File
@@ -220,7 +220,9 @@ class Asset extends Depreciable
}
}
if (!is_array($params)){
return false;
}
return parent::save($params);
}