Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit 31c88b9

Browse files
authored
Merge pull request #37 from relrod/php82-fix
Fix `DISTRIBUTION` constant check for PHP 8.x
2 parents e465010 + 937c24a commit 31c88b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/tools.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function createConfigLines() {
6666
function checkSetup() {
6767
$el = error_reporting();
6868
error_reporting(E_ERROR | E_WARNING | E_PARSE);
69-
if (defined(DISTRIBUTION)) {
69+
if (defined("DISTRIBUTION")) {
7070
?>
7171
<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>
7272
<?php
@@ -85,4 +85,4 @@ function convertTimezone($timestamp) {
8585
$date->setTimezone(new DateTimeZone(TIMEZONE));
8686
return $date->format('Y-m-d H:i:s');
8787
}
88-
?>
88+
?>

0 commit comments

Comments
 (0)