From a335a9f80d9687028f40c42aad6322e526e7854c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Mar 2011 11:39:50 +0400 Subject: [PATCH] pref-prefs: show disabled register certificate button when certificate is unavailable --- modules/pref-prefs.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index ab54ea17..b9cc2433 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -439,12 +439,11 @@ name=\"$pref_name\" value=\"$value\">"; $cert_serial = htmlspecialchars(get_ssl_certificate_id()); + $has_serial = ($cert_serial) ? "false" : "true"; - if ($cert_serial) { - print " "; - } + print " "; print "