# formidable/4.01.02/classes/views/shared/errors.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 4.01.02. 25 lines.

- Page: https://pluginprobe.com/plugins/formidable/4.01.02/code/classes/views/shared/errors.php
- Raw: https://pluginprobe.com/plugins/formidable/4.01.02/raw/classes/views/shared/errors.php
- Modified: 2019-07-12T15:11:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/4.01.02/code/classes/views/shared/errors.php#L10-L20`.

```php
<?php
if ( isset( $message ) && '' !== $message ) {
	if ( FrmAppHelper::is_admin() ) {
		echo '<div class="frm_updated_message">';
		echo FrmAppHelper::kses( $message, 'all' ); // WPCS: XSS ok.
		echo '</div>';
	} else {
		echo $message; // WPCS: XSS ok.
	}
}

if ( isset( $errors ) && is_array( $errors ) && count( $errors ) > 0 ) {
	?>
	<div class="frm_error_style inline" role="alert">
		<ul id="frm_errors">
			<?php
			foreach ( $errors as $error ) {
				echo '<li>' . FrmAppHelper::kses( $error, array( 'a', 'br' ) ) . '</li>'; // WPCS: XSS ok.
			}
			?>
		</ul>
	</div>
	<?php
}

```
