]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve empty data check
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Thu, 10 Oct 2013 16:56:20 +0000 (19:56 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Thu, 10 Oct 2013 16:56:20 +0000 (19:56 +0300)
lib/updater.php

index b428d1403423d39dfc05c7c81a33e635548a3091..d0ae1fb471590ea097fa265dbd117189b2264a57 100644 (file)
@@ -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='<span style="color:#AA0000; font-weight:bold;">'
                                .$l->t('%s is available. Get <a href="%s">more information</a>',
                                array($data['versionstring'], $data['web'])).'</span>';