mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #11877 from owncloud/fix-11875-master
prevent PHP notice
This commit is contained in:
commit
1c7f1a8787
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue