First refactoring to PHP 8.1

This commit is contained in:
Christian Steinle
2022-09-13 07:59:50 +02:00
parent a3edc1f2c2
commit 666eafa30a
18 changed files with 174 additions and 187 deletions

View File

@@ -1,12 +1,7 @@
<?php
// Die Datei greybar.php
if (isset($_GET['section'])) {
$section = $_GET['section'];
}
else {
$section = "home";
}
$section = $_GET['section'] ?? "home";
echo "<ul>\n";
@@ -32,7 +27,4 @@
echo "><a href=\"index.php?section=kontakt\">Kontakt</a></li>\n";
echo "</ul>\n"
?>
echo "</ul>\n";