From 20da75fcf33b690f987f3ced2969a8033d8164ff Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Tue, 8 Aug 2017 00:55:14 +0200 Subject: [PATCH] minor fixes --- bl-plugins/version/plugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bl-plugins/version/plugin.php b/bl-plugins/version/plugin.php index d80cd1e6..dc94f4a4 100644 --- a/bl-plugins/version/plugin.php +++ b/bl-plugins/version/plugin.php @@ -32,10 +32,10 @@ class pluginVersion extends Plugin { if( ($ADMIN_CONTROLLER=='dashboard') && ($timeToCheckgetVersion(); Session::set('timeToCheck', time()); - Session::set('stableVersion', $versions['stableVersion']); + Session::set('version', $versions['version']); } - if( version_compare(Session::get('stableVersion'), BLUDIT_VERSION, '>') ) { + if( version_compare(Session::get('version'), BLUDIT_VERSION, '>') ) { $html = ''; } else { if(defined('BLUDIT_PRO')) { @@ -54,10 +54,10 @@ class pluginVersion extends Plugin { $output = TCP::http($url); $json = json_decode($output, true); - if (empty($json)) { + if (empty($json['stable'])) { return false; } - return $json; + return $json['stable']; } } \ No newline at end of file