From dac55616af5f8d61e99d4d42f2db5b552be914cf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Mar 2021 18:25:14 +0100 Subject: [PATCH] fix PHP 8.0 Fatal error --- api/src/Preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Preferences.php b/api/src/Preferences.php index 89f2a59590..e50932cd0b 100644 --- a/api/src/Preferences.php +++ b/api/src/Preferences.php @@ -136,7 +136,7 @@ class Preferences $this->account_id = self::FORCED_ID; } // if we got instancated for a group, need to set offset of DEFAULT_ID! - elseif ($account_id < 0 || !is_numeric($account_id) && ($account_id = get_account_id($account_id)) < 0) + elseif ((int)$account_id < 0 || !is_numeric($account_id) && ($account_id = get_account_id($account_id)) < 0) { $this->account_id = $account_id + self::DEFAULT_ID; }