Merge pull request #8424 from nextcloud/fix/update-app

Fix updating an app
This commit is contained in:
Roeland Jago Douma 2018-02-19 15:54:49 +01:00 committed by GitHub
commit 4e6d98ea8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;