Code

Updated stats::dumpTables
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Aug 2010 09:30:18 +0000 (09:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Aug 2010 09:30:18 +0000 (09:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19354 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_stats.inc
gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc

index c9b7dd80f08fa379c1cbe4ec947a1665e7d65d6e..00d6fb34921e314ee314c5687188d069a88eea69 100644 (file)
@@ -240,7 +240,7 @@ class stats
         $tim = preg_replace("/^AND /"," WHERE ",$tim);
 
         // Create Filter and start query
-        $filter = "SELECT * FROM {$TABLE_NAME}{$tim}";
+        $filter = "SELECT * FROM {$TABLE_NAME}{$tim} ODER BY ID";
         $ret = sqlite_array_query($filter, $handle, SQLITE_ASSOC);
         return($ret);
     }
index d3a5d5cbec747a2f6266425b08d7194f870aa556..a990197a8088ef1e816fe8f9d4dbfec0ad4bf355 100644 (file)
@@ -25,7 +25,12 @@ class dbChannelStatus extends plugin
 
             // First try to retrieve values via RPC
             if ($this->config->get_cfg_value("core","gosaRpcServer") != ""){
-                $dump = stats::dumpTables();
+                $tmp = stats::dumpTables();
+                $dump = array();
+                foreach($tmp as $entry){
+                    $dump[] = array_values($entry);
+                }
+
                 $rpc = $this->config->getRpcHandle(
                         "http://10.3.64.59:4000",
                         "65717fe6-9e3e-11df-b010-5452005f1250",