diff --git a/system/libs/pot/OTS_Account.php b/system/libs/pot/OTS_Account.php index e578344c..b1026a71 100644 --- a/system/libs/pot/OTS_Account.php +++ b/system/libs/pot/OTS_Account.php @@ -341,16 +341,6 @@ 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'])); } - public function getLastLogin() - { - if( !isset($this->data['lastday']) ) - { - throw new E_OTS_NotLoaded(); - } - - return $this->data['lastday']; - } - public function isPremium() { global $config; diff --git a/system/pages/forum/show_thread.php b/system/pages/forum/show_thread.php index 7c5909d3..303ca93f 100644 --- a/system/pages/forum/show_thread.php +++ b/system/pages/forum/show_thread.php @@ -21,7 +21,7 @@ if(empty($thread_name['name'])) { return; } -if(Forum::hasAccess($thread_name['section'])) { +if(!Forum::hasAccess($thread_name['section'])) { echo "You don't have access to view this thread."; return; }