suppressing NOTICE_Errors in checkSetup\(\)...

This commit is contained in:
dg9vh 2016-05-25 15:24:48 +00:00
parent c734f07c0e
commit fa336dad04

View file

@ -55,6 +55,8 @@ function createConfigLines() {
}
function checkSetup() {
$el = error_reporting();
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if (defined(DISTRIBUTION)) {
?>
<div class="alert alert-danger" role="alert">You are using an old config.php. Please configure your Dashboard by calling <a href="setup.php">setup.php</a>!</div>
@ -67,5 +69,6 @@ function checkSetup() {
<?php
}
}
error_reporting($el);
}
?>