First refactoring to PHP 8.1
This commit is contained in:
12
greybar.php
12
greybar.php
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user