Commit 86cd7204 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Change default admin activity records to use new activity ids

parent a1570291
......@@ -427,10 +427,10 @@ function activity_add_admin_defaults($userids) {
$activitytypes = get_records_array('activity_type', 'admin', 1);
foreach ($activitytypes as $type) {
foreach ($userids as $id) {
if (!record_exists('usr_activity_preference', 'usr', $id, 'activity', $type->name)) {
if (!record_exists('usr_activity_preference', 'usr', $id, 'activity', $type->id)) {
insert_record('usr_activity_preference', (object)array(
'usr' => $id,
'activity' => $type->name,
'activity' => $type->id,
'method' => 'internal',
));
}
......
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