Fixes for carbon

This commit is contained in:
David Bomba 2021-08-12 22:07:11 +10:00
parent b33ad0c03e
commit 676f30b8ce

View File

@ -134,7 +134,7 @@ class Account extends BaseModel
public function getPlan() public function getPlan()
{ {
if(Carbon\Carbon::parse($this->plan_expires)->lt(now())) if(Carbon::parse($this->plan_expires)->lt(now()))
return ''; return '';
return $this->plan ?: ''; return $this->plan ?: '';