From 1a8916af59d5fd697f9fa1ce7088776d3092c554 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 19 Feb 2018 10:28:41 +0100 Subject: [PATCH] Fix updating an up OC_App has been made strict recently and the updater code was not compatible to this. This adds the array to string conversion of the Nextcloud version and fixes a typo in OC_App (sstring -> string) Signed-off-by: Christoph Wurst --- lib/private/Updater.php | 2 +- lib/private/legacy/app.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 727147e090..c70113e1c7 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -385,7 +385,7 @@ class Updater extends BasicEmitter { private function checkAppsRequirements() { $isCoreUpgrade = $this->isCodeUpgrade(); $apps = OC_App::getEnabledApps(); - $version = Util::getVersion(); + $version = implode('.', Util::getVersion()); $disabledApps = []; $appManager = \OC::$server->getAppManager(); foreach ($apps as $app) { diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 4e6ed99f5c..16e57d43eb 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -915,7 +915,7 @@ class OC_App { * @param string $appId * @return bool */ - public static function updateApp(sstring $appId): bool { + public static function updateApp(string $appId): bool { $appPath = self::getAppPath($appId); if($appPath === false) { return false;