Avoid warning about scheme already registered

This commit is contained in:
nathangray 2018-05-11 11:25:02 -06:00
parent 9861c8aec1
commit 8030c477c9

View File

@ -1323,6 +1323,9 @@ class StreamWrapper implements StreamWrapperIface
*/
static function init_static()
{
if (in_array(self::SCHEME, stream_get_wrappers())) {
stream_wrapper_unregister(self::SCHEME);
}
stream_register_wrapper(self::SCHEME,__CLASS__);
if (($fstab = $GLOBALS['egw_info']['server']['vfs_fstab']) && is_array($fstab) && count($fstab))