Improve default behavior for HTMLForm::canDisplayErrors
[lhc/web/wiklou.git] / includes / htmlform / HTMLFormField.php
index 5f6460d..da045ea 100644 (file)
@@ -61,7 +61,7 @@ abstract class HTMLFormField {
         * @return bool
         */
        public function canDisplayErrors() {
-               return true;
+               return $this->hasVisibleOutput();
        }
 
        /**