Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-07-27 00:10:12 +0300
committerGitHub <noreply@github.com>2022-07-27 00:10:12 +0300
commit97462295587f4016066264edb6eed5d5e17903f3 (patch)
treec90ee2b1f83effd9a385b7bf240790ffc3d2ce1b /lib
parentcb9f3423e246708821bd7cee5a9e530d9a5bbcbb (diff)
parentbebf888c726fbac9f9c972af1e5f81247d22fd9d (diff)
Merge pull request #30030 from nextcloud/fexists
Fix disabled `php_uname`
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppStore/Bundles/HubBundle.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Bundles/HubBundle.php b/lib/private/App/AppStore/Bundles/HubBundle.php
index a52de1dfbd4..d5d236a1855 100644
--- a/lib/private/App/AppStore/Bundles/HubBundle.php
+++ b/lib/private/App/AppStore/Bundles/HubBundle.php
@@ -39,8 +39,8 @@ class HubBundle extends Bundle {
'mail',
];
- $architecture = php_uname('m');
- if (PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
+ $architecture = function_exists('php_uname') ? php_uname('m') : null;
+ if (isset($architecture) && PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
$hubApps[] = 'richdocuments';
$hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
}