my $commitfest_topic = $r->db->select(<<EOM, $d->{'commitfest_id'});
SELECT id, name FROM commitfest_topic WHERE commitfest_id = ? ORDER BY name
EOM
+ my $commitfest_topic_warning = ! @$commitfest_topic;
unshift @$commitfest_topic, { 'id' => '', 'name' => '(None Selected)' };
$r->control('commitfest_topic')->choice($commitfest_topic);
$r->add_control('patch_status', 'select', 'Patch Status', 'required' => 1);
# Display template.
$r->render_template('patch_form', { 'id' => $id, 'd' => $d,
- 'commitfest_topic_warning' => !@$commitfest_topic,
+ 'commitfest_topic_warning' => $commitfest_topic_warning,
'new_commitfest' => $cf });
}