From f75ff0c2574c4c2ea2d5bf7bf023061d6d5e486d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 3 Aug 2010 09:30:18 +0000 Subject: [PATCH] Updated stats::dumpTables git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19354 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_stats.inc | 2 +- .../dashBoard/dbChannelStatus/class_dbChannelStatus.inc | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_stats.inc b/gosa-core/include/class_stats.inc index c9b7dd80f..00d6fb349 100644 --- a/gosa-core/include/class_stats.inc +++ b/gosa-core/include/class_stats.inc @@ -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); } diff --git a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc index d3a5d5cbe..a990197a8 100644 --- a/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc +++ b/gosa-core/plugins/generic/dashBoard/dbChannelStatus/class_dbChannelStatus.inc @@ -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", -- 2.30.2