summaryrefslogtreecommitdiff
path: root/includes/helper
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-30 18:49:33 +0200
committermsquare <msquare@notrademark.de>2016-09-30 18:49:33 +0200
commit6dfefc3bb9f054c472156801e37300059444ecc7 (patch)
tree1917fda87003323126b8d7312b3f54b31f27dee0 /includes/helper
parentb87eb49b9324a56da723804e088415d52df77d77 (diff)
small code improvements
Diffstat (limited to 'includes/helper')
-rw-r--r--includes/helper/message_helper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/helper/message_helper.php b/includes/helper/message_helper.php
index a0cc6eb7..37fc84bb 100644
--- a/includes/helper/message_helper.php
+++ b/includes/helper/message_helper.php
@@ -42,12 +42,12 @@ function alert($class, $msg, $immediatly = false) {
return "";
}
return '<div class="alert alert-' . $class . '">' . $msg . '</div>';
- } else {
- if (! isset($_SESSION['msg'])) {
- $_SESSION['msg'] = "";
- }
- $_SESSION['msg'] .= alert($class, $msg, true);
}
+
+ if (! isset($_SESSION['msg'])) {
+ $_SESSION['msg'] = "";
+ }
+ $_SESSION['msg'] .= alert($class, $msg, true);
}
?> \ No newline at end of file