[ticket/16138] Resolve misc coding style issues

PHPBB3-16138
This commit is contained in:
Marc Alexander 2021-05-19 22:11:01 +02:00
parent d05abc0807
commit 6a0b1333da
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 8 additions and 7 deletions

View file

@ -73,6 +73,7 @@ switch ($mode)
$forum_id = (int) $db->sql_fetchfield('forum_id');
$db->sql_freeresult($result);
}
if (!$topic_id || !$forum_id)
{
trigger_error('NO_TOPIC');
@ -1841,23 +1842,23 @@ $s_action = append_sid("{$phpbb_root_path}posting.$phpEx", "mode=$mode");
switch ($mode)
{
case 'post':
$s_action .= ($forum_id) ? "&f=$forum_id" : '';
$s_action .= $forum_id ? "&f=$forum_id" : '';
$page_title = $user->lang['POST_TOPIC'];
break;
case 'reply':
$s_action .= ($topic_id) ? "&t=$topic_id" : '';
$s_action .= $topic_id ? "&t=$topic_id" : '';
$page_title = $user->lang['POST_REPLY'];
break;
case 'quote':
$s_action .= ($post_id) ? "&p=$post_id" : '';
$s_action .= $post_id ? "&p=$post_id" : '';
$page_title = $user->lang['POST_REPLY'];
break;
case 'delete':
case 'edit':
$s_action .= ($post_id) ? "&p=$post_id" : '';
$s_action .= $post_id ? "&p=$post_id" : '';
$page_title = $user->lang['EDIT_POST'];
break;
}