From 5a0180698948183613c6cd6ae47925cc15d3a639 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 23 Oct 2023 14:11:52 +0200 Subject: [PATCH] Fix the handling of legacy branding free licenses --- wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php b/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php index 5a3a558ee5..8df20b5ef7 100644 --- a/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php +++ b/wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php @@ -74,7 +74,7 @@ return static function (): void { if ($licenseData !== null) { $brandingFree = $licenseData->woltlab['com.woltlab.brandingFree'] ?? '0.0'; $expiresAt = $licenseData->license['expiryDates']['com.woltlab.brandingFree'] ?? \TIME_NOW; - if ($brandingFree !== '0.0' && $expiresAt >= \TIME_NOW) { + if ($brandingFree !== '0.0' && ($expiresAt === -1 || $expiresAt >= \TIME_NOW)) { define('WOLTLAB_BRANDING', false); } -- 2.20.1