summaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r--lib/private/Installer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 3ddef99c645..4bdaa31e09b 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -395,14 +395,14 @@ class Installer {
return false;
}
- if ($this->apps === null) {
- $apps = $this->appFetcher->get();
- }
-
if ($this->isInstalledFromGit($appId) === true) {
return false;
}
+ if ($this->apps === null) {
+ $apps = $this->appFetcher->get();
+ }
+
foreach($apps as $app) {
if($app['id'] === $appId) {
$currentVersion = OC_App::getAppVersion($appId);