gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14729 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14729 - gauger
Date: Fri, 25 Mar 2011 16:28:59 +0100

Author: bartpolot
Date: 2011-03-25 16:28:59 +0100 (Fri, 25 Mar 2011)
New Revision: 14729

Modified:
   gauger/explore.php
Log:
Fixed bug in handling uncategorized counters


Modified: gauger/explore.php
===================================================================
--- gauger/explore.php  2011-03-25 15:19:04 UTC (rev 14728)
+++ gauger/explore.php  2011-03-25 15:28:59 UTC (rev 14729)
@@ -117,14 +117,16 @@
     }
 
     ksort($hosts);
-    foreach($hosts as $host => $a) {
+    foreach ($hosts as $host => $a) {
         sort(&$hosts[$host]);
     }
-    foreach($metrics_c as $id => $a) {
+    foreach ($metrics_c as $id => $a) {
         ksort(&$metrics_c[$id]);
     }
     ksort(&$metrics_c);
-    $others = array_shift($metrics_c);
-    $metrics_c[""] = $others;
+    if (array_key_exists('', $metrics_c)) {
+        $others = array_shift($metrics_c);
+        $metrics_c[''] = $others;
+    }
     $d->close();
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]