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
823ab316
Commit
823ab316
authored
Dec 22, 2008
by
Nigel McNie
Browse files
Prevent an exception killing processing of the entire activity queue. Whoops!
parent
4bb025de
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/activity.php
View file @
823ab316
...
@@ -190,7 +190,14 @@ function activity_process_queue() {
...
@@ -190,7 +190,14 @@ function activity_process_queue() {
}
}
$viewsnotified
[
$data
->
view
]
=
true
;
$viewsnotified
[
$data
->
view
]
=
true
;
}
}
handle_activity
(
$activity
->
type
,
$data
,
true
);
try
{
handle_activity
(
$activity
->
type
,
$data
,
true
);
}
catch
(
MaharaException
$e
)
{
// Exceptions can happen while processing the queue, we just
// log them and continue
log_debug
(
$e
->
getMessage
());
}
}
}
delete_records
(
'activity_queue'
);
delete_records
(
'activity_queue'
);
}
}
...
...
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