From 6626328e7cc92b7be522af8249c77b8d4ea3b341 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 21 Jul 2016 09:35:52 +0200 Subject: [PATCH] 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. --- program/lib/Roundcube/bootstrap.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/program/lib/Roundcube/bootstrap.php b/program/lib/Roundcube/bootstrap.php index 268ea8d24..65685d96e 100644 --- a/program/lib/Roundcube/bootstrap.php +++ b/program/lib/Roundcube/bootstrap.php @@ -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'); /**