Commit 94355dd8 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#56676, unset($_SESSION['messages']);, patch by chx

parent fbfde433
......@@ -637,8 +637,9 @@ function drupal_set_message($message = NULL, $type = 'status') {
* As a side effect, this function clears the message queue.
*/
function drupal_get_messages() {
$messages = drupal_set_message();
unset($_SESSION['messages']);
if ($messages = drupal_set_message()) {
unset($_SESSION['messages']);
}
return $messages;
}
......
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