Never overwrite error_reporting
parent
26c7cabee5
commit
655aa9594e
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue