summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-08 22:03:27 +0300
committerAndrew Dolgov <[email protected]>2021-02-08 22:03:27 +0300
commit9f3de2d24c2265e809a02413a56e2661b86b2c70 (patch)
tree0987ba9259f44fa884589e839eb48f18c25517ac /classes/handler/public.php
parent07408ac2226aed0d9020031abc8dbd977c71e61e (diff)
login: fix profile warning
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php6
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 {