From f09fb9ec7c506f12d7f2498faa1a3f3d51d16547 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 12 Oct 2015 02:34:48 -0400 Subject: Issue #1845104 by dcam, longwave, thehong, er.pushpinderrana, martin_q, David_Rothstein: drupal_set_message('0') results in no output rather than outputting "0" --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/bootstrap.inc') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index b2f2b042e..086cef0a9 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1780,7 +1780,7 @@ function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NO * @see theme_status_messages() */ function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) { - if ($message) { + if ($message || $message === '0' || $message === 0) { if (!isset($_SESSION['messages'][$type])) { $_SESSION['messages'][$type] = array(); } -- cgit v1.2.3