bundles/nextcloud/files/managed.config.php: decode to assoc array instead of object

This commit is contained in:
cronekorkn 2023-01-03 15:10:37 +01:00
parent 71125e32e0
commit edf7ab4236
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -1,3 +1,3 @@
<?php
# https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
$CONFIG = json_decode(file_get_contents("/etc/nextcloud/managed.config.json"));
$CONFIG = json_decode(file_get_contents("/etc/nextcloud/managed.config.json"), $associative = true);