PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.14
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.14
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
← All changes | app/Models/Subscription.php +4 -2 6.2.76.2.14 View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2
3 3 namespace FluentForm\App\Models;
4 4
5 +use FluentForm\App\Helpers\Helper;
6 +
5 7 class Subscription extends Model
6 8 {
7 9 /**
8 10 * The table associated with the model.
@@ -42,14 +44,14 @@
42 44 }
43 45
44 46 public function getOriginalPlanAttribute($value)
45 47 {
46 - return maybe_unserialize($value);
48 + return Helper::safeUnserialize($value);
47 49 }
48 50
49 51 public function getVendorResponseAttribute($value)
50 52 {
51 - return maybe_unserialize($value);
53 + return Helper::safeUnserialize($value);
52 54 }
53 55
54 56 public function scopeBySubmission($query, $submissionId)
55 57 {