From 335b7b3112b3f2ed87b46c5dbc5db70a33bbd953 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 14 May 2025 09:22:22 +0200 Subject: [PATCH] Do not return -1 in case of freePremium, makes things harder --- system/libs/pot/OTS_Account.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/system/libs/pot/OTS_Account.php b/system/libs/pot/OTS_Account.php index cf3ccae9..6008a70d 100644 --- a/system/libs/pot/OTS_Account.php +++ b/system/libs/pot/OTS_Account.php @@ -371,9 +371,6 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable throw new E_OTS_NotLoaded(); } - $configFreePremium = configLua('freePremium'); - if(isset($configFreePremium) && getBoolean($configFreePremium)) {return -1;} - if(isset($this->data['premium_ends_at']) || isset($this->data['premend'])) { $col = isset($this->data['premium_ends_at']) ? 'premium_ends_at' : 'premend'; $ret = ceil(($this->data[$col] - time()) / (24 * 60 * 60));