Changeset 2911
- Timestamp:
- 06/25/2008 03:14:46 PM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/form.php
r2907 r2911 25 25 empty($attr['method']) and $attr['method'] = 'post'; 26 26 27 if ($attr['method'] != 'post' AND $attr['method'] != 'get')27 if ($attr['method'] !== 'post' AND $attr['method'] !== 'get') 28 28 { 29 29 // If the method is invalid, use post … … 309 309 $data['type'] = 'checkbox'; 310 310 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)) 312 312 { 313 313 $data['checked'] = 'checked'; … … 339 339 $data['type'] = 'radio'; 340 340 341 if ($checked == = TRUE OR (isset($data['checked']) AND $data['checked'] === TRUE))341 if ($checked == TRUE OR (isset($data['checked']) AND $data['checked'] == TRUE)) 342 342 { 343 343 $data['checked'] = 'checked';
