mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-18 06:20:59 +02:00
login: fix profile warning
This commit is contained in:
parent
07408ac222
commit
9f3de2d24c
@ -701,7 +701,7 @@ class Handler_Public extends Handler {
|
|||||||
$_SESSION["bw_limit"] = !!clean($_POST["bw_limit"] ?? false);
|
$_SESSION["bw_limit"] = !!clean($_POST["bw_limit"] ?? false);
|
||||||
$_SESSION["safe_mode"] = $safe_mode;
|
$_SESSION["safe_mode"] = $safe_mode;
|
||||||
|
|
||||||
if (clean($_POST["profile"])) {
|
if (!empty($_POST["profile"])) {
|
||||||
|
|
||||||
$profile = (int) clean($_POST["profile"]);
|
$profile = (int) clean($_POST["profile"]);
|
||||||
|
|
||||||
@ -712,8 +712,8 @@ class Handler_Public extends Handler {
|
|||||||
if ($sth->fetch()) {
|
if ($sth->fetch()) {
|
||||||
$_SESSION["profile"] = $profile;
|
$_SESSION["profile"] = $profile;
|
||||||
} else {
|
} else {
|
||||||
$_SESSION["profile"] = null;
|
$_SESSION["profile"] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user