suppressing NOTICE_Errors in checkSetup\(\)...
This commit is contained in:
parent
c734f07c0e
commit
fa336dad04
1 changed files with 4 additions and 1 deletions
|
@ -55,6 +55,8 @@ function createConfigLines() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkSetup() {
|
function checkSetup() {
|
||||||
|
$el = error_reporting();
|
||||||
|
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||||
if (defined(DISTRIBUTION)) {
|
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>
|
<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
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
error_reporting($el);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue