Adds condition to check if parameter is of the proper type
This commit is contained in:
@@ -220,7 +220,9 @@ class Asset extends Depreciable
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!is_array($params)){
|
||||
return false;
|
||||
}
|
||||
|
||||
return parent::save($params);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user