diff --git a/app/helpers.php b/app/helpers.php
index ddfa98e1..a7720211 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -102,11 +102,9 @@ if (! function_exists('bs_footer')) {
echo "";
}
- if (Session::has('msg')): ?>
-
- toastr.info('".Session::pull('msg')."');";
+ }
echo '';
}
@@ -188,7 +186,7 @@ if (! function_exists('menv')) {
*/
function menv($key, $default = null)
{
- if (function_exists('getenv')) {
+ if (function_exists('putenv') && function_exists('getenv')) {
// try to read by getenv()
$value = getenv($key);