diff --git a/inc/models/class-membership.php b/inc/models/class-membership.php index 181f85f..95193d6 100644 --- a/inc/models/class-membership.php +++ b/inc/models/class-membership.php @@ -1150,9 +1150,9 @@ class Membership extends Base_Model { if ($this->get_status() !== Membership_Status::CANCELLED) { return ''; - })) + } - if ($this->cancellation_reason === null) { + if (null === $this->cancellation_reason) { $this->cancellation_reason = $this->get_meta('cancellation_reason'); }