diff options
author | Ermal <eri@pfsense.org> | 2012-02-08 07:59:09 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-02-08 07:59:09 +0000 |
commit | 9252d093fa28e865999b23e47c6b2aab967ccb58 (patch) | |
tree | 701c40a28a81a784b65bda309d0347a77c7e1ef9 | |
parent | c58715af2fce30aa338e302587ea6f9416fcd086 (diff) | |
download | pfsense-9252d093fa28e865999b23e47c6b2aab967ccb58.zip pfsense-9252d093fa28e865999b23e47c6b2aab967ccb58.tar.gz |
Another try to eliminate the warning 'PHP Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/authgui.inc:201) in /usr/local/www/guiconfig.inc on line 47'
-rw-r--r-- | etc/inc/auth.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 8d0dbd4..a694efb 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -1287,7 +1287,8 @@ function authenticate_user($username, $password, $authcfg = NULL) { function session_auth() { global $HTTP_SERVER_VARS, $config, $_SESSION, $page; - session_start(); + if (!session_id()) + session_start(); /* Validate incoming login request */ if (isset($_POST['login'])) { |