diff options
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 8a004e207..13a6af4b1 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -701,7 +701,7 @@ class Handler_Public extends Handler { $_SESSION["bw_limit"] = !!clean($_POST["bw_limit"] ?? false); $_SESSION["safe_mode"] = $safe_mode; - if (clean($_POST["profile"])) { + if (!empty($_POST["profile"])) { $profile = (int) clean($_POST["profile"]); @@ -712,8 +712,8 @@ class Handler_Public extends Handler { if ($sth->fetch()) { $_SESSION["profile"] = $profile; } else { - $_SESSION["profile"] = null; - } + $_SESSION["profile"] = null; + } } } else { |