From 4a41e0cc42181aefa7ee860da3945faefda3c691 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 21 Feb 2018 13:00:41 +0100 Subject: getIncompatibleApps needs a string not an array Signed-off-by: Roeland Jago Douma --- lib/base.php | 1 + lib/private/App/AppManager.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/base.php b/lib/base.php index 05da2814d4c..c5eabe1910a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -373,6 +373,7 @@ class OC { // get third party apps $ocVersion = \OCP\Util::getVersion(); + $ocVersion = implode('.', $ocVersion); $incompatibleApps = $appManager->getIncompatibleApps($ocVersion); $incompatibleShippedApps = []; foreach ($incompatibleApps as $appInfo) { diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 690dcfe5639..4bf15c23fab 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -397,7 +397,7 @@ class AppManager implements IAppManager { * * @internal */ - public function getIncompatibleApps($version) { + public function getIncompatibleApps(string $version): array { $apps = $this->getInstalledApps(); $incompatibleApps = array(); foreach ($apps as $appId) { -- cgit v1.2.3