Fix nullable fields.

This commit is contained in:
James Cole
2016-09-24 17:22:42 +02:00
parent b3b66a8f92
commit abc4f856ce
2 changed files with 6 additions and 3 deletions

View File

@@ -110,6 +110,9 @@ class ImportJob extends Model
*/
public function getConfigurationAttribute($value)
{
if (is_null($value)) {
return [];
}
if (strlen($value) == 0) {
return [];
}