From: Gergő Tisza Date: Mon, 22 Aug 2016 22:27:28 +0000 (+0000) Subject: Improve default behavior for HTMLForm::canDisplayErrors X-Git-Tag: 1.31.0-rc.0~5936^2 X-Git-Url: http://git.cyclocoop.org/%22.%20%20%20generer_url_action%28%22logout%22%2C%22logout=prive%22%29%20.%20%20%20%22?a=commitdiff_plain;h=1c8100cf25698502153c85b67e4f7f2e3bbf3b62;p=lhc%2Fweb%2Fwiklou.git Improve default behavior for HTMLForm::canDisplayErrors Change-Id: I3cd94d9b6ce0343af35c1623dac357cccc44293c --- diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 5f6460d3df..da045ea2c0 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -61,7 +61,7 @@ abstract class HTMLFormField { * @return bool */ public function canDisplayErrors() { - return true; + return $this->hasVisibleOutput(); } /**