treewide: strict comparisons

This commit is contained in:
2025-03-12 01:09:08 +01:00
parent 84de16fc25
commit c1802e7cf2
8 changed files with 30 additions and 31 deletions

View File

@@ -18,7 +18,7 @@ function navbar($depth, $active = null) {
];
foreach ($menuItems as $caption => $link) {
$isActive = $active === $link;
if (substr($link, 0, 4) != 'http') {
if (substr($link, 0, 4) !== 'http') {
$link = rtrim(str_repeat('../', $depth) . $link, '/') . '/';
}