remove Exception from function signature of ajax_exception_handler, as php 7 throws Error not inherited from Exception, but Throwable does not exist in php < 7.0

This commit is contained in:
Ralf Becker 2016-02-15 23:17:19 +00:00
parent d1186de773
commit 5bfe4ba48b

View File

@ -31,9 +31,9 @@ function login_redirect(&$anon_account)
*
* Does NOT return!
*
* @param Exception $e
* @param Exception|Error $e
*/
function ajax_exception_handler(Exception $e)
function ajax_exception_handler($e)
{
// handle redirects without logging
if (is_a($e, 'egw_exception_redirect'))