aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2010-11-02 10:25:20 +0000
committerMatthew Somerville <matthew@mysociety.org>2010-11-02 10:25:20 +0000
commit3f62b70cd98827899f5820290ea1b52643122b5e (patch)
tree518ae36a5d85094d6dfcb08a177d63c3661d66fa
parent886209d7ee0960387f0ce90f6044a787eb34308a (diff)
Warnfix.
-rwxr-xr-xweb/contact.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/contact.cgi b/web/contact.cgi
index 6b82422a1..0b1a27c9f 100755
--- a/web/contact.cgi
+++ b/web/contact.cgi
@@ -192,7 +192,7 @@ sub contact_page {
} else {
$intro .= $q->p(_('You are reporting the following update for being abusive, containing personal information, or similar:'));
$item_title = ent($u->{title});
- $item_meta = $q->em( 'Update below added ', ($u->{name} eq '') ? 'anonymously' : "by " . ent($u->{name}),
+ $item_meta = $q->em( 'Update below added ', (!$u->{name}) ? 'anonymously' : "by " . ent($u->{name}),
' at ' . Page::prettify_epoch($q, $u->{confirmed}));
$item_body = ent($u->{text});
$hidden_vals .= '<input type="hidden" name="update_id" value="' . $update_id . '">';