diff www/info.php @ 1334:73dd95d63e7a

Upstream sync.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 09 Sep 2012 01:15:52 +0300
parents ab28c4ddf8b0
children 2b6b38e94bb2
line wrap: on
line diff
--- a/www/info.php	Sat Sep 01 07:12:32 2012 +0300
+++ b/www/info.php	Sun Sep 09 01:15:52 2012 +0300
@@ -63,12 +63,14 @@
 
 /* Print table of wizards
  */
-foreach ($locTable as $location) {
-  foreach ($location["coders"] as $wiz) {
+foreach ($locTable as $location)
+{
+  foreach ($location["coders"] as $wiz)
+  {
     $name = $wiz["name"];
     if (!isset($wizTable[$name]))
-      $wizTable[$name] = array("name" => $name);
-      $wizTable[$name]["areas"]++;
+      $wizTable[$name] = array("name" => $name, "areas" => 0);
+    $wizTable[$name]["areas"]++;
   }
 }
 
@@ -102,7 +104,7 @@
         printf("  <td width=\"%d%%\" style=\"background: %s;\"><a href=\"loc.php?a=%s\">%s</a> <span style=\"color: #f80;\">",
           (100 / $maxRow), (count($wizard) > 2 || isset($wizard["desc"])) ? "#474" : "#744", $wizard["name"], $wizard["name"]);
 
-        if (isset($wizard["areas"]))
+        if ($wizard["areas"] > 0)
           echo " (".$wizard["areas"].")";
 
         echo "</span></td>\n";