Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
86cd7204
Commit
86cd7204
authored
Jan 09, 2008
by
Richard Mansfield
Browse files
Change default admin activity records to use new activity ids
parent
a1570291
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/activity.php
View file @
86cd7204
...
...
@@ -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'
,
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment