Skip to content

Commit

Permalink
fix empty lines of env
Browse files Browse the repository at this point in the history
  • Loading branch information
desmondchoon committed Feb 10, 2020
1 parent 8e86254 commit 906bd8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/APP.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ private function readEnv(){
$contents = fread($envFile, filesize(DOC_ROOT . ".env"));
$contents = explode("\n", $contents);
foreach($contents as $key=>$value){
putenv($value);
if(!empty($value)){
putenv($value);
}
}

echo getenv("TEST2");
Expand Down
2 changes: 1 addition & 1 deletion src/VERSION.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace MightyCore;
class VERSION{
public static function getVersion(){
return "v0.0.4";
return "v0.0.5";
}
}
?>

0 comments on commit 906bd8e

Please sign in to comment.