diff options
author | Andrew Dolgov <[email protected]> | 2013-03-28 08:06:21 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-28 08:06:21 +0400 |
commit | 5160620c8a3c940688f60cc32abb2387a87139dd (patch) | |
tree | c11971f065a9772bca5fe1071e4c295f39b9d43b /api | |
parent | f820f205d0ec1c5ce9027e49755fc8642b0c5b42 (diff) |
only autostart session if login cookie exists
Diffstat (limited to 'api')
-rw-r--r-- | api/index.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/index.php b/api/index.php index 147157946..d248c4f85 100644 --- a/api/index.php +++ b/api/index.php @@ -46,10 +46,9 @@ if ($_REQUEST["sid"]) { session_id($_REQUEST["sid"]); + @session_start(); } - @session_start(); - if (!init_connection($link)) return; $method = strtolower($_REQUEST["op"]); |