From 333689a885fb50fdfc8068b5885c41b9d3cf1510 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 26 Feb 2017 22:03:23 +0100 Subject: Suppress warning on unset SSH key Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 63ab4b4a..a6eab274 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -244,7 +244,7 @@ function process_account_form($TYPE,$A,$U="",$T="",$S="",$E="",$H="",$P="",$C="" "", htmlspecialchars($E,ENT_QUOTES), ""); } } - 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. -- cgit v1.2.3-24-g4f1b