diff --git a/app/Models/Common/Widget.php b/app/Models/Common/Widget.php index 2ce313e21..ce13b46ed 100644 --- a/app/Models/Common/Widget.php +++ b/app/Models/Common/Widget.php @@ -77,12 +77,11 @@ class Widget extends Model */ public function getSettingsAttribute($value) { - $settings = ! empty($value) ? json_decode($value) : (object) []; + $settings = ! empty($value) ? (object) json_decode($value) : (object) []; $settings->raw_width = false; if (isset($settings->width)) { - $raw_width = $settings->width; $width = $this->getWidthAttribute($settings->width);