Changeset 1484

Show
Ignore:
Timestamp:
12/10/2007 10:51:27 AM (13 months ago)
Author:
Shadowhand
Message:

Fixing a === bug with removing rules in Form_Input.

Files:
1 modified

Legend:

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

    r1482 r1484  
    146146                        if ($action === '-') 
    147147                        { 
    148                                 if ($key = array_search($rule, $this->rules)) 
     148                                if (($key = array_search($rule, $this->rules)) !== FALSE) 
    149149                                { 
    150150                                        // Remove the rule