Fix for servers that don't have the cap & conditions columns

This commit is contained in:
slawkens
2026-01-04 16:21:24 +01:00
parent 8b4d4fc627
commit 1faba9ed52
3 changed files with 23 additions and 11 deletions

View File

@@ -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;
}
/**