diff options
author | acsfer <carlos@reendex.com> | 2021-12-01 23:34:52 +0100 |
---|---|---|
committer | blizzz (Rebase PR Action) <blizzz@users.noreply.github.com> | 2022-06-21 16:54:13 +0000 |
commit | bebf888c726fbac9f9c972af1e5f81247d22fd9d (patch) | |
tree | 2f2dc3db8dc5939673f2454cc577d0b878a03f80 /lib | |
parent | cf5452e6339c7de25be6f350f81038bc79e56aff (diff) | |
download | nextcloud-server-bebf888c726fbac9f9c972af1e5f81247d22fd9d.tar.gz nextcloud-server-bebf888c726fbac9f9c972af1e5f81247d22fd9d.zip |
Fix #30003
Fix #30003
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/AppStore/Bundles/HubBundle.php | 4 |
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' : ''); } |