mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix more warnings occurring with unset SSH keys
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
f1d95c09a8
commit
1bedf736e8
1 changed files with 8 additions and 2 deletions
|
@ -301,7 +301,9 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$H="",$P="",$C=""
|
|||
}
|
||||
|
||||
$uid = $dbh->lastInsertId();
|
||||
account_set_ssh_keys($uid, $ssh_keys, $ssh_fingerprints);
|
||||
if (isset($ssh_keys) && count($ssh_keys) > 0) {
|
||||
account_set_ssh_keys($uid, $ssh_keys, $ssh_fingerprints);
|
||||
}
|
||||
|
||||
$message = __("The account, %s%s%s, has been successfully created.",
|
||||
"<strong>", htmlspecialchars($U,ENT_QUOTES), "</strong>");
|
||||
|
@ -364,7 +366,11 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$H="",$P="",$C=""
|
|||
$q.= " WHERE ID = ".intval($UID);
|
||||
$result = $dbh->exec($q);
|
||||
|
||||
$ssh_key_result = account_set_ssh_keys($UID, $ssh_keys, $ssh_fingerprints);
|
||||
if (isset($ssh_keys) && count($ssh_keys) > 0) {
|
||||
$ssh_key_result = account_set_ssh_keys($UID, $ssh_keys, $ssh_fingerprints);
|
||||
} else {
|
||||
$ssh_key_result = true;
|
||||
}
|
||||
|
||||
if (isset($_COOKIE["AURTZ"]) && ($_COOKIE["AURTZ"] != $TZ)) {
|
||||
/* set new cookie for timezone */
|
||||
|
|
Loading…
Add table
Reference in a new issue