mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Fix Patron logic in user detail page
This commit is contained in:
parent
9835e5cee0
commit
8cba20fbf5
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue