Never overwrite error_reporting

master
andryyy 2017-06-13 23:36:42 +02:00
parent 26c7cabee5
commit 655aa9594e
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,6 @@
<?php <?php
require_once 'inc/vars.inc.php'; require_once 'inc/vars.inc.php';
require_once 'inc/functions.inc.php'; require_once 'inc/functions.inc.php';
ini_set('error_reporting', '0');
$config = array( $config = array(
'useEASforOutlook' => 'yes', 'useEASforOutlook' => 'yes',
'autodiscoverType' => 'activesync', 'autodiscoverType' => 'activesync',
@ -27,6 +25,8 @@ if(file_exists('inc/vars.local.inc.php')) {
/* ---------- DO NOT MODIFY ANYTHING BEYOND THIS LINE. IGNORE AT YOUR OWN RISK. ---------- */ /* ---------- DO NOT MODIFY ANYTHING BEYOND THIS LINE. IGNORE AT YOUR OWN RISK. ---------- */
error_reporting(0);
if ($config['useEASforOutlook'] == 'no') { if ($config['useEASforOutlook'] == 'no') {
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Outlook')) { if (strpos($_SERVER['HTTP_USER_AGENT'], 'Outlook')) {
$config['autodiscoverType'] = 'imap'; $config['autodiscoverType'] = 'imap';