[ticket/12675] Fix code sniffer complaints introduced by recent commits

PHPBB3-12675
This commit is contained in:
Marc Alexander 2014-06-09 00:51:01 +02:00
parent b667923bcc
commit e8174f3d66
2 changed files with 2 additions and 2 deletions

View file

@ -1401,7 +1401,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
// no break; // no break;
} }
if (!isset($username_string)) if (!isset($username_string))
{ {
if (($mode == 'full' && !$profile_url) || $mode == 'no_profile') if (($mode == 'full' && !$profile_url) || $mode == 'no_profile')

View file

@ -655,7 +655,7 @@ class mcp_queue
if (!$post_data['topic_posts_approved']) if (!$post_data['topic_posts_approved'])
{ {
$phpbb_notifications->delete_notifications('topic_in_queue', $post_data['topic_id']); $phpbb_notifications->delete_notifications('topic_in_queue', $post_data['topic_id']);
if ($post_data['post_visibility'] == ITEM_UNAPPROVED) if ($post_data['post_visibility'] == ITEM_UNAPPROVED)
{ {
$phpbb_notifications->add_notifications(array('topic'), $post_data); $phpbb_notifications->add_notifications(array('topic'), $post_data);