prevent PHP notice
This commit is contained in:
parent
90e523ead0
commit
99921489cf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue