Show
Ignore:
Timestamp:
03/08/2008 10:52:42 AM (10 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:
1 modified

Legend:

Unmodified
Added
Removed
  • 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;