Skip to content

Commit

Permalink
Attempted fix for minor error in logs caused by bots
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofer Wald committed Sep 19, 2022
1 parent c4b8e93 commit 6f2ac3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils.php
Expand Up @@ -221,7 +221,7 @@ public static function get_language_from_url($url, $home_url) {
// $gluebackhome = true;
}

if (strlen($parsedurl['path']) > 2) {
if (isset($parsedurl['path']) && strlen($parsedurl['path']) > 2) {
$secondslashpos = strpos($parsedurl['path'], "/", 1);
if (!$secondslashpos) {
$secondslashpos = strlen($parsedurl['path']);
Expand Down

0 comments on commit 6f2ac3f

Please sign in to comment.