From: Bjoern Schiessle Date: Tue, 3 Sep 2013 13:56:25 +0000 (+0200) Subject: check if stream wrapper is already registered to avoid warning X-Git-Tag: v6.0.0alpha2~168^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4dbc78705566c3a9062fd4c4f69db60a41c5634b;p=nextcloud-server.git check if stream wrapper is already registered to avoid warning --- diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php index 90a9984e27f..5b62b84e223 100644 --- a/apps/files_encryption/appinfo/app.php +++ b/apps/files_encryption/appinfo/app.php @@ -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()) {