瀏覽代碼

Merge pull request #1364 from Oldiesmann/release-2.1

! Missing ] caused a parse error
Michael Eshom 10 年之前
父節點
當前提交
7784674ea7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/tasks/EventNew-Notify.php

+ 1 - 1
Sources/tasks/EventNew-Notify.php

@@ -33,7 +33,7 @@ class EventNew_Notify_Background extends SMF_BackgroundTask
 		if (!empty($this->_details['sender_id']) && empty($this->_details['sender_name']))
 		{
 			loadMemberData($this->_details['sender_id'], 'minimal');
-			if (!empty($user_profile[$this->_details['sender_id']))
+			if (!empty($user_profile[$this->_details['sender_id']]))
 				$this->_details['sender_name'] = $user_profile[$this->_details['sender_id']]['real_name'];
 			else
 				$this->_details['sender_id'] = 0;