diff options
| -rw-r--r-- | phpBB/includes/functions_posting.php | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 6a0aedf8c6..79fcb892ef 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -2272,8 +2272,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u  			case 'edit_first_post':  			case 'edit':  			case 'edit_last_post': -				// @todo: Check whether these notification deletions are correct -				$phpbb_notifications->delete_notifications('topic', $data['topic_id']); +				if ($data['topic_visibility'] != ITEM_APPROVED) +				{ +					$phpbb_notifications->delete_notifications('topic', $data['topic_id']); +				}  				$phpbb_notifications->delete_notifications(array(  					'quote', @@ -2297,8 +2299,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u  			case 'edit_first_post':  			case 'edit':  			case 'edit_last_post': -				// @todo: Check whether these notification deletions are correct -				$phpbb_notifications->delete_notifications('topic', $data['topic_id']); +				if ($data['topic_visibility'] != ITEM_APPROVED) +				{ +					$phpbb_notifications->delete_notifications('topic', $data['topic_id']); +				}  				$phpbb_notifications->delete_notifications(array(  					'quote',  | 
