Error Box Showing Up?
Permalink
On my view.php pages, I'm getting the error message to show up with no errors...just this (in the code)
And this is what I have in my view.php file:
According to this, the UL shouldn't even print if there are no errors...but somehow it is.
Not sure why...
<ul class="ccm-error"> </ul>
And this is what I have in my view.php file:
<?php if (isset($error) && $error != '') { ?> <?php if ($error instanceof Exception) { $_error[] = $error->getMessage(); } else if ($error instanceof ValidationErrorHelper) { $_error = $error->getList(); } else if (is_array($error)) { $_error = $error; } else if (is_string($error)) { $_error[] = $error; } ?> <ul class="ccm-error"> <?php foreach($_error as $e) { ?><li><?php echo $e?></li><?php } ?> </ul>
Viewing 15 lines of 18 lines. View entire code block.
According to this, the UL shouldn't even print if there are no errors...but somehow it is.
Not sure why...