prevent PHP notice

remotes/origin/fix-10825
Thomas Müller 12 years ago
parent 90e523ead0
commit 99921489cf
  1. 2
      lib/private/app.php

@ -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…
Cancel
Save