Added session checking to ensure that the session wasn't started twice.
git-svn-id: http://svn.cleancode.org/svn/pickles@8 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
e40b31e7e4
commit
c057838e91
1 changed files with 1 additions and 1 deletions
2
jLib.php
2
jLib.php
|
@ -24,7 +24,7 @@ if (Config::getDisable()) {
|
||||||
exit("<h2><em>{$_SERVER['SERVER_NAME']} is currently down for maintenance</em></h2>");
|
exit("<h2><em>{$_SERVER['SERVER_NAME']} is currently down for maintenance</em></h2>");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config::getSession()) {
|
if (Config::getSession() && !isset($_SESSION)) {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue