diff --git a/plugins/system/redirect/redirect.php b/plugins/system/redirect/redirect.php index 410561a10f462..7a04c0b13fa7a 100644 --- a/plugins/system/redirect/redirect.php +++ b/plugins/system/redirect/redirect.php @@ -46,15 +46,18 @@ public function __construct(&$subject, $config) /** * Method to handle an error condition from JError. * - * @param JException &$error The JException object to be handled. + * @param Exception &$error The Exception object passed from JError to be handled. * * @return void * * @since 1.6 */ - public static function handleError(JException &$error) + public static function handleError(&$error) { - self::doErrorHandling($error); + if (is_object($error) && ($error instanceof Exception)) + { + self::handleException($error); + } } /**