From a6ce497dd932fc013301e433c635c6286fffe513 Mon Sep 17 00:00:00 2001
From: Alessandro Cosentino <cosenal@gmail.com>
Date: Sat, 4 Aug 2012 13:39:36 -0400
Subject: [PATCH] OC_App::getAppVersion return blank if version is not
 specified

---
 lib/app.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/app.php b/lib/app.php
index d1018c37aa..2e9ec4d630 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -394,7 +394,7 @@ class OC_App{
 			return trim($version);
 		}else{
 			$appData=self::getAppInfo($appid);
-			return $appData['version'];
+			return isset($appData['version'])? $appData['version'] : '';
 		}
 	}
 
-- 
GitLab