summaryrefslogtreecommitdiff
path: root/modules/update/update.fetch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/update/update.fetch.inc')
-rw-r--r--modules/update/update.fetch.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/update/update.fetch.inc b/modules/update/update.fetch.inc
index a79e71c3a..4ecdbc235 100644
--- a/modules/update/update.fetch.inc
+++ b/modules/update/update.fetch.inc
@@ -42,12 +42,15 @@ function _update_refresh() {
if ($data) {
$parser = new update_xml_parser;
$available = $parser->parse($data);
+ }
+ if (!empty($available) && is_array($available)) {
$frequency = variable_get('update_check_frequency', 1);
cache_set('update_info', $available, 'cache_update', time() + (60 * 60 * 24 * $frequency));
variable_set('update_last_check', time());
watchdog('update', 'Fetched information about all available new releases and updates.', array(), WATCHDOG_NOTICE, l('view', 'admin/reports/updates'));
}
else {
+ module_invoke('system', 'check_http_request');
watchdog('update', 'Unable to fetch any information about available new releases and updates.', array(), WATCHDOG_ERROR, l('view', 'admin/reports/updates'));
}
return $available;