mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 12:10:34 +01:00
Merge branch 'MDL-35344-updates' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
5df0b25806
@ -861,6 +861,11 @@ class available_update_checker {
|
||||
/**
|
||||
* Loads the most recent raw response record we have fetched
|
||||
*
|
||||
* After this method is called, $this->recentresponse is set to an array. If the
|
||||
* array is empty, then either no data have been fetched yet or the fetched data
|
||||
* do not have expected format (and thence they are ignored and a debugging
|
||||
* message is displayed).
|
||||
*
|
||||
* This implementation uses the config_plugins table as the permanent storage.
|
||||
*
|
||||
* @param bool $forcereload reload even if it was already loaded
|
||||
@ -880,7 +885,8 @@ class available_update_checker {
|
||||
$this->recentfetch = $config->recentfetch;
|
||||
$this->recentresponse = $this->decode_response($config->recentresponse);
|
||||
} catch (available_update_checker_exception $e) {
|
||||
// do not set recentresponse if the validation fails
|
||||
debugging('Invalid info about available updates detected and will be ignored: '.$e->getMessage(), DEBUG_ALL);
|
||||
$this->recentresponse = array();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user