We already require PEAR, so it's not needed to check if PEAR class exists.

Sooner or later it will fail if PEAR does not exist, so better to do this sooner.
pull/321/merge
Aleksander Machniak 8 years ago
parent fdf9ff5a17
commit 6626328e7c

@ -100,9 +100,7 @@ if (!preg_match($regexp, $path)) {
spl_autoload_register('rcube_autoload');
// set PEAR error handling (will also load the PEAR main class)
if (class_exists('PEAR')) {
@PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error');
}
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error');
/**

Loading…
Cancel
Save