Commit 1c2cda2d authored by webchick's avatar webchick

#681134 by moshe weitzman: Fixed stop issuing headers to CLI clients.

parent 6260946b
......@@ -215,7 +215,8 @@ function drupal_session_initialize() {
* @ingroup php_wrappers
*/
function drupal_session_start() {
if (!drupal_session_started()) {
// Command line clients do not support cookies nor sessions.
if (!drupal_session_started() && !drupal_is_cli()) {
// Save current session data before starting it, as PHP will destroy it.
$session_data = isset($_SESSION) ? $_SESSION : NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment