<?php
if (!empty($error)) 
    echo $this->formErrors((array)$error);
elseif (!empty($errors))
    echo $this->formErrors((array)$errors);
?>