Skip to content

Commit 8585125

Browse files
author
florian030
committed
added username to make the monitor-data usable for db-quota-checks
1 parent 35a68db commit 8585125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function onRunJob() {
8585
$data[$i]['name'] = $records[$i]['database_name'];
8686
$data[$i]['size'] = $app->db->getDatabaseSize($data[$i]['name']);
8787
$data[$i]['sys_groupid'] = $records[$i]['sys_groupid'];
88+
$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'];
8889
}
8990
}
9091

0 commit comments

Comments
 (0)