From 1faddafbe18a372927a48a307e1da8123b11d460 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 17 May 2023 04:44:19 +0000 Subject: [PATCH] User Settings [Class]: Updates for PHP 8.1 --- core/user_settings/resources/classes/user_settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/user_settings/resources/classes/user_settings.php b/core/user_settings/resources/classes/user_settings.php index fd85b5a170..dea8b87ab3 100644 --- a/core/user_settings/resources/classes/user_settings.php +++ b/core/user_settings/resources/classes/user_settings.php @@ -54,7 +54,7 @@ if (!class_exists('user_settings')) { $this->app_name = 'user_settings'; $this->app_uuid = '3a3337f7-78d1-23e3-0cfd-f14499b8ed97'; $this->permission_prefix = 'user_setting_'; - $this->list_page = PROJECT_PATH."/core/user/user_edit.php?id=".urlencode($this->user_uuid); + $this->list_page = PROJECT_PATH."/core/user/user_edit.php?id=".urlencode($this->user_uuid ?? ''); $this->table = 'user_settings'; $this->uuid_prefix = 'user_setting_'; $this->toggle_field = 'user_setting_enabled';