Florian Schaal
2013-11-01 232684261dc25c783e3b456b91bf45766caa27be
set database order in monitor
1 files modified
4 ■■■■ changed files
server/lib/classes/cron.d/100-monitor_database_size.inc.php 4 ●●●● patch | view | raw | blame | history
server/lib/classes/cron.d/100-monitor_database_size.inc.php
@@ -72,8 +72,8 @@
        /** The state of the database-usage */
        $state = 'ok';
        /** Fetch the data of ALL databases into an array */
        $records = $app->db->queryAllRecords("SELECT database_name, sys_groupid FROM web_database WHERE server_id = $server_id");
        /** Fetch the data of all active databases into an array */
        $records = $app->db->queryAllRecords("SELECT database_name, sys_groupid FROM web_database WHERE server_id = $server_id AND active='y' GROUP BY sys_groupid, database_name ASC");
        if(is_array($records) && !empty($records)) {
            $data = array();
            for ($i = 0; $i < sizeof($records); $i++) {