Skip to content

Commit

Permalink
Fix php 8 issue (NamelessMC#2468)
Browse files Browse the repository at this point in the history
  • Loading branch information
supercrafter100 authored Oct 25, 2021
1 parent 8031046 commit 8ccebf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/classes/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ public function handlePanelPageLoad(string $permission = null): bool {
if (FRIENDLY_URLS === true) {
$split = explode('?', $_SERVER['REQUEST_URI']);

if (count($split) > 1)
if ($split != null && count($split) > 1)
$_SESSION['last_page'] = URL::build($split[0], $split[1]);
else
$_SESSION['last_page'] = URL::build($split[0]);
Expand Down

0 comments on commit 8ccebf2

Please sign in to comment.