Skip to content
Snippets Groups Projects
Commit feec2ab4 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed username detection in dwpage FS#2011

parent d0bdf765
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment