mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-03 06:44:03 +01:00
Check for PEAR class before accessing it. With new composer modules this isn't necessary in the include path anymore
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user