| @@ -1,8 +1,18 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FluentCommunity\App\Models; |
| 4 | 4 | |
| 5 | +use FluentCommunity\App\Functions\Utility; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * @property int $id | |
| 9 | + * @property string|null $slug | |
| 10 | + * @property string|null $title | |
| 11 | + * @property string|null $taxonomy_name | |
| 12 | + * @property string|null $description | |
| 13 | + * @property mixed $settings | |
| 14 | + */ | |
| 5 | 15 | class Term extends Model |
| 6 | 16 | { |
| 7 | 17 | protected $table = 'fcom_terms'; |
| 8 | 18 | |
| @@ -54,9 +64,9 @@ | ||
| 54 | 64 | } |
| 55 | 65 | |
| 56 | 66 | public function getSettingsAttribute($value) |
| 57 | 67 | { |
| 58 | - $settings = maybe_unserialize($value); | |
| 68 | + $settings = Utility::safeUnserialize($value); | |
| 59 | 69 | |
| 60 | 70 | if (!$settings) { |
| 61 | 71 | $settings = []; |
| 62 | 72 | } |