Only close the session if it had been opened.
This commit is contained in:
parent
789e9577c6
commit
1bfdc216d0
3 changed files with 7 additions and 4 deletions
|
@ -489,7 +489,8 @@ if (isset($_GET["mode"]) AND ($_GET["mode"] == "raw")) {
|
|||
|
||||
echo substr($target->saveHTML(), 6, -8);
|
||||
|
||||
session_write_close();
|
||||
if (!$a->is_backend())
|
||||
session_write_close();
|
||||
exit;
|
||||
|
||||
}
|
||||
|
@ -514,5 +515,6 @@ if(!$template) {
|
|||
|
||||
require_once($template);
|
||||
|
||||
session_write_close();
|
||||
if (!$a->is_backend())
|
||||
session_write_close();
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue