summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas2010-09-27 16:28:09 +0000
committerRobert Haas2010-09-27 16:28:09 +0000
commitbd36222eefaa9c4ffd18b27921c428ce744bedd7 (patch)
treeec7b2dded3f0359c4a431138f5cf6c729fd130f6
parentb3735ecca50610b4f569f33438e3c015bc59674e (diff)
Unbreak commitfest_topic_warning code.
-rw-r--r--perl-lib/PgCommitFest/Patch.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-lib/PgCommitFest/Patch.pm b/perl-lib/PgCommitFest/Patch.pm
index f8c311a..dd3ef69 100644
--- a/perl-lib/PgCommitFest/Patch.pm
+++ b/perl-lib/PgCommitFest/Patch.pm
@@ -105,6 +105,7 @@ EOM
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);
@@ -163,7 +164,7 @@ EOM
# 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 });
}