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:
Josh Sherman 2007-12-09 15:52:02 +00:00
parent e40b31e7e4
commit c057838e91

View file

@ -24,7 +24,7 @@ if (Config::getDisable()) {
exit("<h2><em>{$_SERVER['SERVER_NAME']} is currently down for maintenance</em></h2>");
}
if (Config::getSession()) {
if (Config::getSession() && !isset($_SESSION)) {
session_start();
}