Skip to content
Snippets Groups Projects
Commit 74857b53 authored by Alex Pott's avatar Alex Pott
Browse files

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
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment