Skip to content

Commit

Permalink
Merge pull request #25 from mduret/master
Browse files Browse the repository at this point in the history
change way to get environment variable
  • Loading branch information
chr15m authored Mar 14, 2024
2 parents 1ce0ef3 + 5eec149 commit df69424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Set data directory to data if no one logged in
// Otherwise to data/<username>
$dir = "data";
if (isset($_ENV["TODO_PER_USER_FOLDERS"]) && $_ENV["TODO_PER_USER_FOLDERS"] == 'TRUE') {
if ( getenv("TODO_PER_USER_FOLDERS") == 'TRUE') {
$dir = "data/".$_SERVER['PHP_AUTH_USER'];
if (!file_exists($dir)) {
mkdir($dir, 0777);
Expand Down

0 comments on commit df69424

Please sign in to comment.