Commit 1c7f1a87 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11877 from owncloud/fix-11875-master

prevent PHP notice
parents bed81ea8 99921489
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment