diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-02-10 05:42:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-02-10 05:42:11 +0000 |
commit | 37ec1bca84d313627920bce759d1ad8f2b71db20 (patch) | |
tree | 6e4181b0352adcbb2f7ead826b2d7f859d765e27 /includes/bootstrap.inc | |
parent | 583d5a4ee95a583184f39497a44062599ad6e1d7 (diff) | |
download | brdo-37ec1bca84d313627920bce759d1ad8f2b71db20.tar.gz brdo-37ec1bca84d313627920bce759d1ad8f2b71db20.tar.bz2 |
- Patch #44947 by rkerr / Moshe: fixed race condition in session handling, reduced query overhead of session handling, reduced database overhead of session handling.
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 3ffd4dbc1..a6e5e9b8a 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -608,7 +608,7 @@ function watchdog($type, $message, $severity = WATCHDOG_NOTICE, $link = NULL) { * - 'error' */ function drupal_set_message($message = NULL, $type = 'status') { - if (isset($message)) { + if ($message) { if (!isset($_SESSION['messages'])) { $_SESSION['messages'] = array(); } @@ -631,7 +631,7 @@ function drupal_set_message($message = NULL, $type = 'status') { */ function drupal_get_messages() { $messages = drupal_set_message(); - $_SESSION['messages'] = array(); + unset($_SESSION['messages']); return $messages; } |