summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/pref-prefs.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index ab54ea174..b9cc24330 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 " <button dojoType=\"dijit.form.Button\"
- onclick=\"insertSSLserial('$cert_serial')\">" .
- __('Register') . "</button>";
- }
+ print " <button dojoType=\"dijit.form.Button\" disabled=\"$has_serial\"
+ onclick=\"insertSSLserial('$cert_serial')\">" .
+ __('Register') . "</button>";
print " <button dojoType=\"dijit.form.Button\"
onclick=\"insertSSLserial('')\">" .