From b779ade86ac909549f714148298d3debeffec7f6 Mon Sep 17 00:00:00 2001 From: liwenrui Date: Fri, 31 May 2024 09:47:54 +0800 Subject: [PATCH] * skip creating xuan action for nonexistent user logging in, bug #49868. --- .../extension/xuan/im/ext/model/class/xuanxuan.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/extension/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php b/extension/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php index a145c66900..97e3bc968f 100644 --- a/extension/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php +++ b/extension/xuanxuan/extension/xuan/im/ext/model/class/xuanxuan.class.php @@ -146,6 +146,7 @@ class xuanxuanIm extends imModel $userID = $this->dao->select('id')->from(TABLE_USER)->where('account')->eq($user)->fetch('id'); $account = $user; } + if(empty($userID)) return; $actor = !empty($account) ? $account : ''; $extra = json_encode(array('actorId' => $userID));