mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Fix recursion when running an update script
This commit is contained in:
parent
12f7cb8767
commit
2d8a380a21
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue