Skip to content
Snippets Groups Projects
Commit 4dbc7870 authored by Björn Schießle's avatar Björn Schießle
Browse files

check if stream wrapper is already registered to avoid warning

parent 3d49631b
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment