Skip to content

Commit 39cdcb9

Browse files
committed
Only display spacer row when necessary
If there are no existing branch mappings, the spacer row is useless Fixes #244
1 parent 10d69ce commit 39cdcb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/pages/repo_manage_page.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ function convert_to_key_value( $p_array ) {
199199
$t_disabled = 'disabled';
200200
if( is_null( $t_mapping->branch ) ) {
201201
$t_disabled = '';
202-
?>
203-
<tr class="spacer"></tr><tr></tr>
204-
<?php
202+
if( count( $t_mappings ) > 1 ) {
203+
echo '<tr class="spacer"></tr>';
204+
}
205205
}
206206
?>
207207
<tr>

0 commit comments

Comments
 (0)