Announcement

Posted Wed Feb 22 @ 12:00am Eastern (1 month ago)
CSCI E-15 Dynamic Web Applications dwa15.com

FYI On a bug fix in Form.php

There was a buggy line in Form.php:

$this->hasErrors = empty($errors);

This would set hasErrors to be True if $errors were empty, which is the opposite logic we want.

The line should actually read:

$this->hasErrors = !empty($errors);

If you're using Form.php you should update it with the latest version to fix this bug.

Hat tip to Barbara for spotting this!