Ignore:
Timestamp:
Jul 3, 2024 1:26:01 AM (3 months ago)
Author:
anonymous
Message:

Minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Navigation.inc.php

    r810 r816  
    440440        }
    441441
     442        if (empty($test_uri)) {
     443            return $false_return;
     444        }
     445
    442446        $actual_uri = $include_query ? $_SERVER['REQUEST_URI'] : (strstr(getenv('REQUEST_URI'), '?', true) ?: getenv('REQUEST_URI')); // strstr() returns false if '?' is not found, so use a shorthand ternary operator.
    443447        $test_uri = $include_query ? $test_uri : (strstr($test_uri, '?', true) ?: $test_uri); // strstr() returns false if '?' is not found, so use a shorthand ternary operator.
Note: See TracChangeset for help on using the changeset viewer.