]> source.dussan.org Git - nextcloud-server.git/commitdiff
Wipe cache if there is no response from feed
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Sat, 6 Dec 2014 12:19:20 +0000 (15:19 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Sat, 6 Dec 2014 12:19:34 +0000 (15:19 +0300)
lib/private/updater.php

index 7d271c4480c10fdc11b0b77a4536b47b7adb0faa..be294c165b475103b9344185cb7c25bf8bcb0155 100644 (file)
@@ -100,6 +100,7 @@ class Updater extends BasicEmitter {
                );
                $xml = @file_get_contents($url, 0, $ctx);
                if ($xml == false) {
+                       \OC_Appconfig::setValue('core', 'lastupdateResult', json_encode(array()));
                        return array();
                }
                $loadEntities = libxml_disable_entity_loader(true);