* reverted getLastLogin cause it was used by tibia11-login plugin

This commit is contained in:
slawkens1 2017-10-20 22:01:05 +02:00
parent 85c9a1e84d
commit 5266f33af5

View File

@ -343,7 +343,17 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
return round(($this->data['lastday'] - time()) / (24 * 60 * 60), 3);
//return $this->data['premdays'] - (date("z", time()) + (365 * (date("Y", time()) - date("Y", $this->data['lastday']))) - date("z", $this->data['lastday']));
}
public function getLastLogin()
{
if( !isset($this->data['lastday']) )
{
throw new E_OTS_NotLoaded();
}
return $this->data['lastday'];
}
public function isPremium()
{
global $config;