Commit 74857b53 authored by alexpott's avatar alexpott

Issue #1845104 by longwave, thehong | martin_q: Fixed drupal_set_message('0')...

Issue #1845104 by longwave, thehong | martin_q: Fixed drupal_set_message('0') results in no output rather than outputting "0".
parent dd933797
...@@ -894,7 +894,7 @@ function watchdog($type, $message, array $variables = array(), $severity = WATCH ...@@ -894,7 +894,7 @@ function watchdog($type, $message, array $variables = array(), $severity = WATCH
* @see theme_status_messages() * @see theme_status_messages()
*/ */
function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) { function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) {
if ($message) { if (isset($message)) {
if (!isset($_SESSION['messages'][$type])) { if (!isset($_SESSION['messages'][$type])) {
$_SESSION['messages'][$type] = array(); $_SESSION['messages'][$type] = array();
} }
......
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