浏览代码

User Settings [Class]: Updates for PHP 8.1

fusionate 2 年之前
父节点
当前提交
b25117fac0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/user_settings/resources/classes/user_settings.php

+ 1 - 1
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';