Skip to content

Commit

Permalink
Merge pull request #37 from relrod/php82-fix
Browse files Browse the repository at this point in the history
Fix `DISTRIBUTION` constant check for PHP 8.x
  • Loading branch information
dg9vh committed Aug 9, 2023
2 parents e465010 + 937c24a commit 31c88b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tools.php
Expand Up @@ -66,7 +66,7 @@ function createConfigLines() {
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"><?php echo _("You are using an old config.php. Please configure your Dashboard by calling <a href=\"setup.php\">setup.php</a>!"); ?></div>
<?php
Expand All @@ -85,4 +85,4 @@ function convertTimezone($timestamp) {
$date->setTimezone(new DateTimeZone(TIMEZONE));
return $date->format('Y-m-d H:i:s');
}
?>
?>

0 comments on commit 31c88b9

Please sign in to comment.