Jelajahi Sumber

Merge pull request #1364 from Oldiesmann/release-2.1

! Missing ] caused a parse error
Michael Eshom 10 tahun lalu
induk
melakukan
7784674ea7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;