diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 21:24:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 21:24:49 +0300 |
commit | e6624cf631f772f2a1eac9412e7a96d6545e91e6 (patch) | |
tree | b68af4ba90491657236b1b971eb6debc44713dca /backend.php | |
parent | 119a4226d812918733a815a896cfed8380188c15 (diff) |
fix a few more session-related warnings
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.php b/backend.php index dec79f46f..2ea396987 100644 --- a/backend.php +++ b/backend.php @@ -46,7 +46,7 @@ UserHelper::authenticate( "admin", null); } - if ($_SESSION["uid"]) { + if (!empty($_SESSION["uid"])) { if (!validate_session()) { header("Content-Type: text/json"); print error_json(6); |