diff options
author | msquare <msquare@notrademark.de> | 2016-09-30 18:49:33 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-30 18:49:33 +0200 |
commit | 6dfefc3bb9f054c472156801e37300059444ecc7 (patch) | |
tree | 1917fda87003323126b8d7312b3f54b31f27dee0 /includes/helper | |
parent | b87eb49b9324a56da723804e088415d52df77d77 (diff) |
small code improvements
Diffstat (limited to 'includes/helper')
-rw-r--r-- | includes/helper/message_helper.php | 10 |
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 |