Skip to content

Commit 4697293

Browse files
author
Iordanis Kostelidis
committed
optimizes url credentials (checks for empty params)
1 parent 0b780e5 commit 4697293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/commons/Defaults.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function getDefaultKoha()
2323
"koha_intra_port" => "80",
2424
"koha_intra_basic_username" => "",
2525
"koha_intra_basic_password" => "",
26-
"koha_intra_username" => $_GET['username'],
27-
"koha_intra_password" => $_GET['password']
26+
"koha_intra_username" => isset($_GET['username']) ? $_GET['username'] : '',
27+
"koha_intra_password" => isset($_GET['password']) ? $_GET['password'] : ''
2828
];
2929
}

0 commit comments

Comments
 (0)