summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-10-04 14:57:03 (GMT)
committerAlex Pott2014-10-04 14:57:03 (GMT)
commit74857b53c23c72a22d769d7b75490d4f75778cec (patch)
tree45c155a02961abf19863faf93ec28f6c73bc31e3
parentdd93379791304a32457da2d8529dce5eb9591aee (diff)
Issue #1845104 by longwave, thehong | martin_q: Fixed drupal_set_message('0') results in no output rather than outputting "0".
-rw-r--r--core/includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index dc36c45..3101e1b 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();
}