From bf1e5522bbc7b0d59fc46b9e2b5c92a3a6af5985 Mon Sep 17 00:00:00 2001 From: yangchen Date: Mon, 14 Aug 2023 16:57:21 +0800 Subject: [PATCH] fix(commit emails): getCommitEmails param type error --- application/models/user_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/user_model.php b/application/models/user_model.php index 943066a..6dc073a 100755 --- a/application/models/user_model.php +++ b/application/models/user_model.php @@ -32,7 +32,7 @@ class User_model extends CI_Model 'notification' => (int) $item['u_notification_status'], 'mfaEnabled' => $item['u_2fa'] ? TRUE : FALSE, 'admin' => $item['u_admin'] ? TRUE : FALSE, - 'emails' => $this->getCommitEmails($item, !$extra), + 'emails' => $item ? $this->getCommitEmails($item, !$extra) : [], 'unReadNotification' => $extra ? $this->notificationModel->unReadNotificationCount($item['u_key']) : 0, 'status' => $item['u_status'] == COMMON_STATUS_NORMAL, 'host' => YAML_HOST,