PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.01
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.01
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
← All changes | app/Models/Term.php +11 -1 1.0.922.10.01 View file →
@@ -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 }