Commit 85851254 authored by Florian Schaal's avatar Florian Schaal
Browse files

added username to make the monitor-data usable for db-quota-checks

parent 35a68db6
......@@ -85,6 +85,7 @@ class cronjob_monitor_database_size extends cronjob {
$data[$i]['name'] = $records[$i]['database_name'];
$data[$i]['size'] = $app->db->getDatabaseSize($data[$i]['name']);
$data[$i]['sys_groupid'] = $records[$i]['sys_groupid'];
$data[$i]['username'] = $app->db->queryOneRecord("SELECT client.username FROM web_database, sys_group, client WHERE web_database.sys_groupid = sys_group.groupid AND sys_group.client_id = client.client_id and web_database.database_name='".$data[$i]['name']."'")['username'];
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment