diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 12:25:06 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 12:32:08 +0200 |
commit | 0a20883aa862779b48fd2a297456c2db04cffb95 (patch) | |
tree | 310600aaa23404f0cd7d3e198bacdbc93645da32 /includes/helper | |
parent | 2bd127c011846aad69731d1d63535a3d4f100af0 (diff) |
Reimplementation of 2840bb619 (signup requires arrival), closes #330
Diffstat (limited to 'includes/helper')
-rw-r--r-- | includes/helper/message_helper.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/helper/message_helper.php b/includes/helper/message_helper.php index 7a42a7b7..4fa0efe3 100644 --- a/includes/helper/message_helper.php +++ b/includes/helper/message_helper.php @@ -57,16 +57,17 @@ function success($msg, $immediately = false) * @param string $class * @param string $msg * @param bool $immediately - * @return string|null + * @return string */ function alert($class, $msg, $immediately = false) { $session = session(); + if (empty($msg)) { + return ''; + } + if ($immediately) { - if ($msg == '') { - return ''; - } return '<div class="alert alert-' . $class . '">' . $msg . '</div>'; } @@ -74,5 +75,5 @@ function alert($class, $msg, $immediately = false) $message .= alert($class, $msg, true); $session->set('msg', $message); - return null; + return ''; } |