Skip to content
Snippets Groups Projects
Commit e6624cf6 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

fix a few more session-related warnings

parent 119a4226
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -2,6 +2,6 @@
class Handler_Protected extends Handler {
function before($method) {
return parent::before($method) && $_SESSION['uid'];
return parent::before($method) && !empty($_SESSION['uid']);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment