From 74857b53c23c72a22d769d7b75490d4f75778cec Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Sat, 4 Oct 2014 16:57:03 +0200 Subject: [PATCH] Issue #1845104 by longwave, thehong | martin_q: Fixed drupal_set_message('0') results in no output rather than outputting "0". --- core/includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index dc36c4526e5d..3101e1bc850f 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -894,7 +894,7 @@ function watchdog($type, $message, array $variables = array(), $severity = WATCH * @see theme_status_messages() */ function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) { - if ($message) { + if (isset($message)) { if (!isset($_SESSION['messages'][$type])) { $_SESSION['messages'][$type] = array(); } -- GitLab