Changeset 2241

Show
Ignore:
Timestamp:
03/08/08 11:52:42 (5 months ago)
Author:
Shadowhand
Message:

Fixing a bug that could cause Forge to mark a field as required when it has a value of "0".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/forge/libraries/Form_Input.php

    r2022 r2241  
    523523        protected function rule_required() 
    524524        { 
    525                 if ($this->value == FALSE
     525                if ($this->value === '' OR $this->value === NULL
    526526                { 
    527527                        $this->errors['required'] = TRUE;