# charitable/1.4.9/templates/form-fields/errors.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.4.9. 24 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.4.9/code/templates/form-fields/errors.php
- Raw: https://pluginprobe.com/plugins/charitable/1.4.9/raw/templates/form-fields/errors.php
- Modified: 2017-01-18T06:07:00+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/charitable/1.4.9/code/templates/form-fields/errors.php#L10-L20`.

```php
<?php
/**
 * The template used to display error messages.
 *
 * @author  Studio 164a
 * @since   1.0.0
 * @version 1.3.0
 */

if ( ! isset( $view_args['errors'] ) ) {
	return;
}

$errors = $view_args['errors'];

?>
<div class="charitable-form-errors charitable-notice">
	<ul class="errors">
		<?php foreach ( $errors as $error ) : ?>
			<li><?php echo $error ?></li>
		<?php endforeach ?>
	</ul>
</div>

```
