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 " ";
- }
+ print " ";
print "