use ini_set(display_errors,0) instead of turning off errors entirely so that we still log errors, just not output them instead of json.

This commit is contained in:
Isaac Connor 2020-04-03 15:21:31 -04:00
parent ef9fbac90c
commit 4e58a38317
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<?php
error_reporting(E_ERROR);
ini_set('display_errors','0');
if ( empty($_REQUEST['id']) && empty($_REQUEST['eids']) ) {
ajaxError('No event id(s) supplied');
@ -155,5 +155,5 @@ if ( canEdit('Events') ) {
} // end switch action
} // end if canEdit('Events')
ajaxError('Unrecognised action '.$_REQUEST['action'].' or insufficient permissions for user ' . $user['Username']);
ajaxError('Unrecognised action '.$_REQUEST['action'].' or insufficient permissions for user '.$user['Username']);
?>