diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-08-27 08:36:21 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-08-27 08:36:21 +0200 |
commit | feec2ab4a23cccb6180531f3b427b0bce4f7eba2 (patch) | |
tree | 87f01bb65b70c2febf7b029c32086ebe9be9e544 /bin | |
parent | d0bdf7659fce98c2922b151766d51d5c7e8814d6 (diff) | |
download | rpg-feec2ab4a23cccb6180531f3b427b0bce4f7eba2.tar.gz rpg-feec2ab4a23cccb6180531f3b427b0bce4f7eba2.tar.bz2 |
fixed username detection in dwpage FS#2011
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dwpage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dwpage.php b/bin/dwpage.php index f664770bf..211bc5a9e 100755 --- a/bin/dwpage.php +++ b/bin/dwpage.php @@ -98,12 +98,12 @@ function usage($action) { #------------------------------------------------------------------------------ function getUser() { $user = getenv('USER'); - if (empty ($username)) { + if (empty ($user)) { $user = getenv('USERNAME'); } else { return $user; } - if (empty ($username)) { + if (empty ($user)) { $user = 'admin'; } return $user; |