fix warning if no username is set in the cookie
This commit is contained in:
parent
828a26c69e
commit
9d1c5c855b
|
@ -69,14 +69,22 @@ elseif(isset($_POST["user"])) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if(isset($_COOKIE["username"])){
|
||||||
OC_TEMPLATE::printGuestPage("", "login", array("error" => true, "username" => $_COOKIE["username"]));
|
OC_TEMPLATE::printGuestPage("", "login", array("error" => true, "username" => $_COOKIE["username"]));
|
||||||
|
}else{
|
||||||
|
OC_TEMPLATE::printGuestPage("", "login", array("error" => true));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For all others cases, we display the guest page :
|
// For all others cases, we display the guest page :
|
||||||
else {
|
else {
|
||||||
OC_APP::loadApps();
|
OC_APP::loadApps();
|
||||||
|
if(isset($_COOKIE["username"])){
|
||||||
OC_TEMPLATE::printGuestPage("", "login", array("error" => false, "username" => $_COOKIE["username"]));
|
OC_TEMPLATE::printGuestPage("", "login", array("error" => false, "username" => $_COOKIE["username"]));
|
||||||
|
}else{
|
||||||
|
OC_TEMPLATE::printGuestPage("", "login", array("error" => false));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue