Fix Patron logic in user detail page

This commit is contained in:
Alex Cabal 2024-12-01 17:01:18 -06:00
parent 9835e5cee0
commit 8cba20fbf5

View file

@ -64,8 +64,13 @@ class User{
if(!isset($this->_Patron)){
try{
$this->_Patron = Patron::Get($this->UserId);
if($this->_Patron->Ended === null){
$this->IsPatron = true;
}
else{
$this->IsPatron = false;
}
}
catch(Exceptions\PatronNotFoundException){
$this->_Patron = null;
$this->IsPatron = false;