summaryrefslogtreecommitdiff
path: root/includes/helper
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-11 23:46:28 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-19 13:59:39 +0200
commitf3b3b6683ca90b70ec4d4daae002dc0caac9ebdd (patch)
treec550252995a46763d8c540c9bd7f41e4b1c4f246 /includes/helper
parentf3f05f6cc4bef3338dbfb6eb340da4fb1c5ba1e1 (diff)
Added middleware tests
Diffstat (limited to 'includes/helper')
-rw-r--r--includes/helper/message_helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/helper/message_helper.php b/includes/helper/message_helper.php
index 3d2b663a..388a878c 100644
--- a/includes/helper/message_helper.php
+++ b/includes/helper/message_helper.php
@@ -73,8 +73,6 @@ function success($msg, $immediately = false)
*/
function alert($class, $msg, $immediately = false)
{
- $session = session();
-
if (empty($msg)) {
return '';
}
@@ -83,6 +81,7 @@ function alert($class, $msg, $immediately = false)
return '<div class="alert alert-' . $class . '">' . $msg . '</div>';
}
+ $session = session();
$message = $session->get('msg', '');
$message .= alert($class, $msg, true);
$session->set('msg', $message);