Skip to content
Snippets Groups Projects
Commit 99921489 authored by Thomas Müller's avatar Thomas Müller
Browse files

prevent PHP notice

parent 90e523ea
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment