diff --git a/lib/modules/contributors/contributors.php b/lib/modules/contributors/contributors.php index 88879a9a5..31b1c24a5 100644 --- a/lib/modules/contributors/contributors.php +++ b/lib/modules/contributors/contributors.php @@ -344,8 +344,8 @@ public static function contributors_form_table($current_contributions = array(), $contributors_groups = \Podlove\Modules\Contributors\Model\ContributorGroup::selectOptions(); $cjson = array(); - $has_roles = count( $contributors_roles ); - $has_groups = count( $contributors_groups ); + $has_roles = count( $contributors_roles ) > 0; + $has_groups = count( $contributors_groups ) > 0; foreach (\Podlove\Modules\Contributors\Model\Contributor::all() as $contributor) { $show_contributions = \Podlove\Modules\Contributors\Model\ShowContribution::all( "WHERE `contributor_id` = " . $contributor->id ); @@ -393,8 +393,8 @@ public static function contributors_form_table($current_contributions = array(), Contributor - 0 ? 'Group' : '' ); ?> - 0 ? 'Role' : '' ); ?> + Group' : '' ); ?> + Role' : '' ); ?> Remove @@ -422,7 +422,7 @@ public static function contributors_form_table($current_contributions = array(), - 0 ) : ?> + - 0 ) : ?> +