File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class ProcessWireUpgradeCheck extends WireData implements Module {
23
23
return array(
24
24
'title' => 'Upgrades Checker',
25
25
'summary' => 'Automatically checks for core and installed module upgrades at routine intervals.',
26
- 'version' => 2 ,
26
+ 'version' => 3 ,
27
27
'autoload' => "template=admin",
28
28
'singular' => true,
29
29
'author' => 'Ryan Cramer',
@@ -54,7 +54,7 @@ class ProcessWireUpgradeCheck extends WireData implements Module {
54
54
$cache = $this->cache;
55
55
$cacheName = $this->className() . "_loginHook";
56
56
$cacheData = $cache ? $cache->get($cacheName) : null;
57
- if(!empty($cacheData)) $cache = json_decode($cacheData, true);
57
+ if(!empty($cacheData) && is_string($cacheData) ) $cache = json_decode($cacheData, true);
58
58
59
59
$branches = empty($cacheData) ? $this->getCoreBranches() : $cacheData['branches'];
60
60
$master = $branches['master'];
@@ -203,7 +203,7 @@ class ProcessWireUpgradeCheck extends WireData implements Module {
203
203
if(!is_array($data)) {
204
204
$error = $http->getError();
205
205
if(!$error) $error = $this->_('Error retrieving modules directory data');
206
- $this->error($error);
206
+ $this->error($error . " (" . $this->className() . ")" );
207
207
return array();
208
208
}
209
209
}
You can’t perform that action at this time.
0 commit comments