Skip to content

Commit

Permalink
Fix PHP 8.3 Warning Passing null to parameter line 146
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarvello committed May 17, 2024
1 parent 52f494e commit 03f8d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static function getCurrentSubSystem($url)
$subSystems = unserialize(SUBSYSTEMS);
if (is_array($subSystems)) {
foreach ($subSystems as $key => $value) {
if (substr($url, 0, strlen($value)) === $value) {
if (!empty($url) && substr($url, 0, strlen($value)) === $value) {
$temp = substr($url, 0, strlen($value));
if (strlen($temp) > strlen($currentSubSystem))
$currentSubSystem = $temp;
Expand Down

0 comments on commit 03f8d30

Please sign in to comment.