diff --git a/extend/fast/Form.php b/extend/fast/Form.php
index 31d259ca..3260c4df 100644
--- a/extend/fast/Form.php
+++ b/extend/fast/Form.php
@@ -520,14 +520,22 @@ class FormBuilder
$yes = $options['yes'];
$no = $options['no'];
}
- $grayclass = $yes == $value ? "": "fa-flip-horizontal text-gray";
$disabled = (isset($options['disabled']) && $options['disabled']) || in_array('disabled', $options) ? "disabled" : '';
$color = $options['color'] ?? 'success';
unset($options['yes'], $options['no'], $options['color'], $options['disabled']);
$attr = $this->attributes($options);
+ if (in_array($value, [(string)$yes, (string)$no])) {
+ $grayclass = $yes == $value ? "" : "fa-flip-horizontal text-gray";
+ $innerElement = "";
+ } else {
+ $title = __('Status unknown, please manually change the status');
+ $innerElement = <<
+EOD;
+ }
$html = <<
+{$innerElement}
EOD;
return $html;
}