check if stream wrapper is already registered to avoid warning

This commit is contained in:
Bjoern Schiessle 2013-09-03 15:56:25 +02:00
parent 3d49631b8d
commit 4dbc787055

View file

@ -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()) {