[ticket/9679] phpBB offers to notify poster even if notification is disabled

The "notify user" check box would not do anything if checked in this case, but
it was still presented.  The checkbox is now only shown if there are
notification options enabled.

PHPBB3-9679
This commit is contained in:
Josh Woody 2010-07-29 10:01:35 -05:00
parent fc25fe694a
commit 8ea0309ed1

View file

@ -691,16 +691,19 @@ function approve_post($post_id_list, $id, $mode)
{
$show_notify = false;
foreach ($post_info as $post_data)
if ($config['email_enable'] || $config['jab_enable'])
{
if ($post_data['poster_id'] == ANONYMOUS)
foreach ($post_info as $post_data)
{
continue;
}
else
{
$show_notify = true;
break;
if ($post_data['poster_id'] == ANONYMOUS)
{
continue;
}
else
{
$show_notify = true;
break;
}
}
}