prevent PHP notice

This commit is contained in:
Thomas Müller 2014-10-30 17:24:25 +01:00
parent 90e523ead0
commit 99921489cf
1 changed files with 1 additions and 1 deletions

View File

@ -990,7 +990,7 @@ class OC_App {
public static function shouldUpgrade($app) {
$versions = self::getAppVersions();
$currentVersion = OC_App::getAppVersion($app);
if ($currentVersion) {
if ($currentVersion && isset($versions[$app])) {
$installedVersion = $versions[$app];
if (version_compare($currentVersion, $installedVersion, '>')) {
return true;