From dd7ce024586a3b4f18eaa5e79a337aeb76dcde7d Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 10 Oct 2013 19:56:20 +0300 Subject: [PATCH] Improve empty data check --- lib/updater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/updater.php b/lib/updater.php index b428d140342..d0ae1fb4715 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -74,7 +74,7 @@ class OC_Updater extends BasicEmitter { if(OC_Config::getValue('updatechecker', true)==true) { $data=OC_Updater::check(); - if(isset($data['version']) and $data['version']<>'') { + if(isset($data['version']) && !empty($data['version'])) { $txt='' .$l->t('%s is available. Get more information', array($data['versionstring'], $data['web'])).''; -- 2.39.5