Shutdown function, if an error happened, an error message is displayed. FIXME: need to be changed - this errors are corrupting json answers
global $ajax currently will be set to true in CTAjaxHandler! (there are errors caused by debugging which was hindering) if error on ajax is needed, add something like $json['error'] = $info;
error_get_last() dont respects error_reporting() - f.e. deprecated options in php.ini which are not shown and maybe can not be changed by admins and dont influence scripting causes an error here!
I think heavy core errors shouldnt be shown on the page and all others should be catched by an exception handler.
Located at system/includes/start.php