From 5266f33af5ccb6eec77d2e2f85f8ad0eaecfb590 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Fri, 20 Oct 2017 22:01:05 +0200 Subject: [PATCH] * reverted getLastLogin cause it was used by tibia11-login plugin --- system/libs/pot/OTS_Account.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/libs/pot/OTS_Account.php b/system/libs/pot/OTS_Account.php index 45958b06..2e493126 100644 --- a/system/libs/pot/OTS_Account.php +++ b/system/libs/pot/OTS_Account.php @@ -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;