Commit a9823b6b authored by Nigel McNie's avatar Nigel McNie
Browse files

Ignore deleted users, groups and host records when aggregating data to send to mahara.org.

parent 56d85a5a
......@@ -137,19 +137,23 @@ function registration_data() {
}
foreach (array(
'usr',
'usr_friend',
'usr_institution',
'group',
'group_member',
'block_instance',
'institution',
'blocktype_wall_post',
'host',
'institution') as $key) {
$data_to_send['count_' . $key] = count_records($key);
}
foreach (array(
'usr',
'group',
'host') as $key) {
$data_to_send['count_' . $key] = count_records_select($key, 'deleted = 0');
}
// Don't include the root user
$data_to_send['count_usr']--;
......
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