Changeset 1437 for trunk/system/helpers/form.php
- Timestamp:
- 12/06/2007 08:15:37 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/form.php
r1333 r1437 141 141 142 142 // Form elements should have the same id as name 143 if ( ! isset($data['id']) )143 if ( ! isset($data['id']) AND strpos($data['name'], '[') === FALSE) 144 144 { 145 145 $data['id'] = $data['name']; … … 444 444 } 445 445 446 $data = array 447 ( 448 'for' => $data 449 ); 446 $data = empty($data) ? array() : array('for' => $data); 450 447 } 451 448
