Skip to content

Commit

Permalink
Fix Setting Module typo
Browse files Browse the repository at this point in the history
  • Loading branch information
darron1217 committed Apr 19, 2018
1 parent 1c60878 commit 1eacf7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Setting/Entities/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Setting extends Model
protected $fillable = ['name', 'value', 'description', 'isTranslatable', 'plainValue'];
protected $table = 'setting__settings';

public function hasMedia(): boolean
public function hasMedia(): bool
{
$value = json_decode($this->plainValue, true);
return is_array($value) && isset($value['media_single']) && $setting->files->count();
Expand Down

0 comments on commit 1eacf7a

Please sign in to comment.