diff options
author | matthew <matthew> | 2008-11-07 16:52:05 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-11-07 16:52:05 +0000 |
commit | 40f61c6fd45ee018065a1c44f877548606aae307 (patch) | |
tree | 9b9f77c6d6ffa13c63e5845eab9ce7bb6f2b966b /web-admin | |
parent | 18f3c6665bd951992b5e006ef0a3c4302fac333b (diff) |
Deal with /0.
Diffstat (limited to 'web-admin')
-rwxr-xr-x | web-admin/index.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi index 61175269f..ca9ef5cfe 100755 --- a/web-admin/index.cgi +++ b/web-admin/index.cgi @@ -7,10 +7,10 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: index.cgi,v 1.56 2008-11-07 10:40:29 matthew Exp $ +# $Id: index.cgi,v 1.57 2008-11-07 16:52:05 matthew Exp $ # -my $rcsid = ''; $rcsid .= '$Id: index.cgi,v 1.56 2008-11-07 10:40:29 matthew Exp $'; +my $rcsid = ''; $rcsid .= '$Id: index.cgi,v 1.57 2008-11-07 16:52:05 matthew Exp $'; use strict; @@ -104,7 +104,7 @@ sub admin_summary ($) { $questionnaires{0} ||= 0; $questionnaires{1} ||= 0; $questionnaires{total} = $questionnaires{0} + $questionnaires{1}; - my $questionnaires_pc = $questionnaires{1} / $questionnaires{total} * 100; + my $questionnaires_pc = $questionnaires{total} ? $questionnaires{1} / $questionnaires{total} * 100 : 'na'; print $q->ul( $q->li("<strong>$total_problems_live</strong> live problems"), |