forked from extern/egroupware
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:
parent
d1186de773
commit
5bfe4ba48b
4
json.php
4
json.php
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user