mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-12 01:21:30 +01:00
Fix for servers that don't have the cap & conditions columns
This commit is contained in:
@@ -1390,12 +1390,7 @@ class OTS_Player extends OTS_Row_DAO
|
||||
*/
|
||||
public function getCap()
|
||||
{
|
||||
if( !isset($this->data['cap']) )
|
||||
{
|
||||
throw new E_OTS_NotLoaded();
|
||||
}
|
||||
|
||||
return $this->data['cap'];
|
||||
return $this->data['cap'] ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user