summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-02-21 13:00:41 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-21 13:00:41 +0100
commit4a41e0cc42181aefa7ee860da3945faefda3c691 (patch)
tree1bda67877bc082fb85d7280ec67d64db4566e1a8 /lib
parent09857e5a95b0a200adb2955ace3b69be2603d3d6 (diff)
downloadnextcloud-server-4a41e0cc42181aefa7ee860da3945faefda3c691.tar.gz
nextcloud-server-4a41e0cc42181aefa7ee860da3945faefda3c691.zip
getIncompatibleApps needs a string not an array
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php1
-rw-r--r--lib/private/App/AppManager.php2
2 files changed, 2 insertions, 1 deletions
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) {