Commit 6c268804 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Made the has_errors method public, so the validate functions can find out

whether forms already have any errors.
parent d644a666
......@@ -947,7 +947,7 @@ EOF;
*
* @return bool Whether there are errors with the form
*/
private function has_errors() {
public function has_errors() {
foreach ($this->get_elements() as $element) {
if (isset($element['error'])) {
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment