From 73f1986816193d24042352d51b8ebe48f892d85c Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Mon, 18 Mar 2002 18:05:53 +0000 Subject: [PATCH] Fixed bug #506390 THis isn't the best fix but its the only way I could get around adding language file string git-svn-id: file:///svn/phpbb/trunk@2319 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/modcp.php | 10 ++++++++++ phpBB/templates/subSilver/modcp_split.tpl | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/phpBB/modcp.php b/phpBB/modcp.php index 35d23ae424..c67b0cfc1f 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -812,6 +812,15 @@ switch($mode) $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; + if($i > 1 || $total_posts > 1) + { + $checkbox = ''; + } + else + { + $checkbox = ' '; + } + $template->assign_block_vars("postrow", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, @@ -819,6 +828,7 @@ switch($mode) "POST_DATE" => $post_date, "POST_SUBJECT" => $post_subject, "MESSAGE" => $message, + "SPLIT_CHECKBOX" => $checkbox, "POST_ID" => $post_id) ); } diff --git a/phpBB/templates/subSilver/modcp_split.tpl b/phpBB/templates/subSilver/modcp_split.tpl index da00e1461c..c29c080352 100644 --- a/phpBB/templates/subSilver/modcp_split.tpl +++ b/phpBB/templates/subSilver/modcp_split.tpl @@ -58,7 +58,7 @@ - + {postrow.SPLIT_CHECKBOX} .