Changeset 2911

Show
Ignore:
Timestamp:
06/25/2008 03:14:46 PM (5 months ago)
Author:
Shadowhand
Message:

Fixing some type comparisons in form::

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/form.php

    r2907 r2911  
    2525                empty($attr['method']) and $attr['method'] = 'post'; 
    2626 
    27                 if ($attr['method'] != 'post' AND $attr['method'] != 'get') 
     27                if ($attr['method'] !== 'post' AND $attr['method'] !== 'get') 
    2828                { 
    2929                        // If the method is invalid, use post 
     
    309309                $data['type'] = 'checkbox'; 
    310310 
    311                 if ((bool) $checked === TRUE OR (isset($data['checked']) AND $data['checked'] === TRUE)) 
     311                if ($checked == TRUE OR (isset($data['checked']) AND $data['checked'] == TRUE)) 
    312312                { 
    313313                        $data['checked'] = 'checked'; 
     
    339339                $data['type'] = 'radio'; 
    340340 
    341                 if ($checked === TRUE OR (isset($data['checked']) AND $data['checked'] === TRUE)) 
     341                if ($checked == TRUE OR (isset($data['checked']) AND $data['checked'] == TRUE)) 
    342342                { 
    343343                        $data['checked'] = 'checked';