aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-27 14:56:34 +0200
committerBart Visscher <bartv@thisnet.nl>2012-06-27 14:56:34 +0200
commit2d8a380a21716f619bc38e769876dfa5752e6f68 (patch)
treee5df5ec646ccc233042044894776fe544dd09748
parent12f7cb87679453fa96c796df857b7e7193d4ee09 (diff)
downloadnextcloud-server-2d8a380a21716f619bc38e769876dfa5752e6f68.tar.gz
nextcloud-server-2d8a380a21716f619bc38e769876dfa5752e6f68.zip
Fix recursion when running an update script
-rwxr-xr-xlib/app.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php
index a9feff1620a..61566ed7522 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -36,6 +36,7 @@ class OC_App{
static private $appInfo = array();
static private $appTypes = array();
static private $loadedApps = array();
+ static private $checkedApps = array();
/**
* @brief loads all apps
@@ -530,6 +531,10 @@ class OC_App{
* check if the app need updating and update when needed
*/
public static function checkUpgrade($app) {
+ if (in_array($app, self::$checkedApps)) {
+ return;
+ }
+ self::$checkedApps[] = $app;
$versions = self::getAppVersions();
$currentVersion=OC_App::getAppVersion($app);
if ($currentVersion) {