Skip to content

Commit 78fc9a6

Browse files
author
Marius Cramer
committed
Merge branch 'master' of /home/git/repositories/florian030/ispconfig3
2 parents 3bf0024 + 2326842 commit 78fc9a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/lib/classes/cron.d/100-monitor_database_size.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function onRunJob() {
7272
/** The state of the database-usage */
7373
$state = 'ok';
7474

75-
/** Fetch the data of ALL databases into an array */
76-
$records = $app->db->queryAllRecords("SELECT database_name, sys_groupid FROM web_database WHERE server_id = $server_id");
75+
/** Fetch the data of all active databases into an array */
76+
$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");
7777
if(is_array($records) && !empty($records)) {
7878
$data = array();
7979
for ($i = 0; $i < sizeof($records); $i++) {

0 commit comments

Comments
 (0)