From: Andrew Dolgov Date: Mon, 28 Mar 2011 07:39:50 +0000 (+0400) Subject: pref-prefs: show disabled register certificate button when certificate is unavailable X-Git-Tag: 1.5.3~108 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a335a9f80d9687028f40c42aad6322e526e7854c;p=tt-rss.git pref-prefs: show disabled register certificate button when certificate is unavailable --- 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 "