diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-14 02:05:34 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-14 02:05:34 +0000 |
commit | 1c2cda2d7ce7cbdff083375506dc1ff8ad339fbc (patch) | |
tree | 5f365eee6401cbf00cfe3e5a8ddc268fde19912e /includes/session.inc | |
parent | 6260946b821246cc615ee8066bdd4e9187708bc1 (diff) | |
download | brdo-1c2cda2d7ce7cbdff083375506dc1ff8ad339fbc.tar.gz brdo-1c2cda2d7ce7cbdff083375506dc1ff8ad339fbc.tar.bz2 |
#681134 by moshe weitzman: Fixed stop issuing headers to CLI clients.
Diffstat (limited to 'includes/session.inc')
-rw-r--r-- | includes/session.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/session.inc b/includes/session.inc index 2aeb8eee5..0d387a146 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -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; |