Permalink
Browse files

MDL-32338 Libraries : made pluginlib.php cron_execute handle the exce…

…ptions it faces.
  • Loading branch information...
1 parent aa753ac commit fd87d0bf7891c8c93219217a432d2433da3e5055 @nebgor nebgor committed May 4, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/pluginlib.php
View
@@ -1100,12 +1100,12 @@ protected function cron_execution_offset() {
*/
protected function cron_execute() {
- $this->restore_response();
- $previous = $this->recentresponse;
- $this->fetch();
- $this->restore_response(true);
- $current = $this->recentresponse;
try {
+ $this->restore_response();
+ $previous = $this->recentresponse;
+ $this->fetch();
+ $this->restore_response(true);
+ $current = $this->recentresponse;
$changes = $this->compare_responses($previous, $current);
$notifications = $this->cron_notifications($changes);
$this->cron_notify($notifications);

0 comments on commit fd87d0b

Please sign in to comment.