From: Victor Dubiniuk Date: Thu, 10 Oct 2013 16:56:20 +0000 (+0300) Subject: Improve empty data check X-Git-Tag: v5.0.13~41^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd7ce024586a3b4f18eaa5e79a337aeb76dcde7d;p=nextcloud-server.git Improve empty data check --- 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'])).'';