Merge branch 'MDL-32338' of git://github.com/nebgor/moodle

This commit is contained in:
Dan Poltawski
2012-05-23 11:27:54 +08:00
+5 -5
View File
@@ -1112,12 +1112,12 @@ class available_update_checker {
*/
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);