summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 21:24:49 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 21:24:49 +0300
commite6624cf631f772f2a1eac9412e7a96d6545e91e6 (patch)
treeb68af4ba90491657236b1b971eb6debc44713dca /backend.php
parent119a4226d812918733a815a896cfed8380188c15 (diff)
fix a few more session-related warnings
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php2
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);