diff --git a/lib/User.php b/lib/User.php index 038a1be4..684a175d 100644 --- a/lib/User.php +++ b/lib/User.php @@ -64,7 +64,12 @@ class User{ if(!isset($this->_Patron)){ try{ $this->_Patron = Patron::Get($this->UserId); - $this->IsPatron = true; + if($this->_Patron->Ended === null){ + $this->IsPatron = true; + } + else{ + $this->IsPatron = false; + } } catch(Exceptions\PatronNotFoundException){ $this->_Patron = null;