diff options
-rw-r--r-- | lib/private/Installer.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index e754f28455b..cc6725e9175 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -395,7 +395,11 @@ class Installer { return false; } - $apps = $appFetcher->get(); + static $apps = null; + if ($apps === null) { + $apps = $appFetcher->get(); + } + foreach($apps as $app) { if($app['id'] === $appId) { $currentVersion = OC_App::getAppVersion($appId); |