mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
check if stream wrapper is already registered to avoid warning
This commit is contained in:
parent
3d49631b8d
commit
4dbc787055
1 changed files with 3 additions and 1 deletions
|
|
@ -25,7 +25,9 @@ if (!OC_Config::getValue('maintenance', false)) {
|
|||
// App manager related hooks
|
||||
OCA\Encryption\Helper::registerAppHooks();
|
||||
|
||||
stream_wrapper_register('crypt', 'OCA\Encryption\Stream');
|
||||
if(!in_array('crypt', stream_get_wrappers())) {
|
||||
stream_wrapper_register('crypt', 'OCA\Encryption\Stream');
|
||||
}
|
||||
|
||||
// check if we are logged in
|
||||
if (OCP\User::isLoggedIn()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue