* 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

@ -344,6 +344,16 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
//return $this->data['premdays'] - (date("z", time()) + (365 * (date("Y", time()) - date("Y", $this->data['lastday']))) - date("z", $this->data['lastday'])); //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() public function isPremium()
{ {
global $config; global $config;