Commit 333689a8 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Suppress warning on unset SSH key



Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent f2357a17
......@@ -244,7 +244,7 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$H="",$P="",$C=""
"<strong>", htmlspecialchars($E,ENT_QUOTES), "</strong>");
}
}
if (!$error && count($ssh_keys) > 0) {
if (!$error && isset($ssh_keys) && count($ssh_keys) > 0) {
/*
* Check whether any of the SSH public keys is already in use.
* TODO: Fix race condition.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment