cvs: php-bugs-web / bugstats.php

From: Date: Mon, 28 Jan 2002 02:42:22 +0000
Subject: cvs: php-bugs-web / bugstats.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8323@lists.php.net to get a copy of this message
sterling Sun Jan 27 21:42:22 2002 EDT Modified files: /php-bugs-web bugstats.php Log: 3 strtolower()'s becomes 1. Index: php-bugs-web/bugstats.php diff -u php-bugs-web/bugstats.php:1.6 php-bugs-web/bugstats.php:1.7 --- php-bugs-web/bugstats.php:1.6 Sat Jan 26 23:33:20 2002 +++ php-bugs-web/bugstats.php Sun Jan 27 21:42:22 2002 @@ -29,19 +29,17 @@ while($row=mysql_fetch_array($result)) { $bug_type['all'][$row[bug_type]]++; - switch (strtolower($row[status])) { - case "closed": - /* falls through */ - case "bogus": - $closed_by[$row[dev_id]]++; - break; + $status = strtolower($row['status']); + if ($status == 'closed' || $status == 'bogus') { + $closed_by[$row['dev_id']]++; } - $bug_type[strtolower($row[status])][$row[bug_type]]++; - $bug_type[strtolower($row[status])]['all']++; + + $bug_type[$status][$row[bug_type]]++; + $bug_type[$status]['all']++; $email[$row[email]]++; $php_version[$row[php_version]]++; $php_os[$row[php_os]]++; - $status[$row[status]]++; + $status[$row['status']]++; $total++; }

« previous php.mirrors (#8323) next »