Suppress warning on unset SSH key

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-02-26 22:03:23 +01:00
parent f2357a1724
commit 333689a885

View file

@ -244,7 +244,7 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$H="",$P="",$C=""
"<strong>", htmlspecialchars($E,ENT_QUOTES), "</strong>"); "<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. * Check whether any of the SSH public keys is already in use.
* TODO: Fix race condition. * TODO: Fix race condition.