PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.0
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/Meta.php +9 -1 1.0.952.10.0 View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2
3 3 namespace FluentCommunity\App\Models;
4 4
5 +use FluentCommunity\App\Functions\Utility;
6 +
5 7 /**
6 8 * Meta Model - DB Model for Meta table
7 9 *
8 10 * Database Model
@@ -9,8 +11,14 @@
9 11 *
10 12 * @package FluentCommunity\App\Models
11 13 *
12 14 * @version 1.0.0
15 + *
16 + * @property int $id
17 + * @property string|null $object_type
18 + * @property int|null $object_id
19 + * @property string|null $meta_key
20 + * @property mixed $value
13 21 */
14 22 class Meta extends Model
15 23 {
16 24 protected $table = 'fcom_meta';
@@ -32,9 +40,9 @@
32 40 }
33 41
34 42 public function getValueAttribute($value)
35 43 {
36 - return maybe_unserialize($value);
44 + return Utility::safeUnserialize($value);
37 45 }
38 46
39 47 public function scopeByType($query, $type)
40 48 {