Check for PEAR class before accessing it. With new composer modules this isn't necessary in the include path anymore

pull/279/head
Thomas Bruederli 10 years ago
parent 9311fea09b
commit 4ab77dd13e

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

Loading…
Cancel
Save