diff options
author | Louise Crow <louise@mysociety.org> | 2010-02-16 17:20:44 +0000 |
---|---|---|
committer | Louise Crow <louise@mysociety.org> | 2010-02-16 17:20:44 +0000 |
commit | 454b8fbe8f9d665cbdfa934bf42dc8a4c94b6ec1 (patch) | |
tree | c30b768365d96bd230e021c6d85c238d12e7cc6b /web-admin | |
parent | 6a635fe0b9f8c817098555ba4df3bc212221cd32 (diff) |
Set an undefined name to an empty string to avoid warnings on comparison
Diffstat (limited to 'web-admin')
-rwxr-xr-x | web-admin/index.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi index 002452e29..2ea68d065 100755 --- a/web-admin/index.cgi +++ b/web-admin/index.cgi @@ -695,6 +695,9 @@ sub admin_edit_update { if ($q->param('state') ne $row{state}) { admin_log_edit($q, $id, 'update', 'state_change'); } + if (!defined($row{name})){ + $row{name} = ""; + } if ($q->param('name') ne $row{name} || $q->param('email') ne $row{email} || $q->param('text') ne $row{text}) { admin_log_edit($q, $id, 'update', 'edit'); } |