Changeset 2914
- Timestamp:
- 06/25/2008 05:45:11 PM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/form.php
r2911 r2914 42 42 } 43 43 44 // Set action 45 $attr['action'] = $action; 46 44 47 // Form opening tag 45 $form = '<form action="'.$action.'"'.form::attributes($attr).'>'."\n";48 $form = '<form'.form::attributes($attr).'>'."\n"; 46 49 47 50 // Add hidden fields immediate after opening tag … … 452 455 return ''; 453 456 454 if ($type === NULL AND ! empty($attr['type']))455 {456 // Set the type by the attributes457 $type = $attr['type'];458 }459 460 457 if (isset($attr['name']) AND empty($attr['id']) AND strpos($attr['name'], '[') === FALSE) 461 458 { 459 if ($type === NULL AND ! empty($attr['type'])) 460 { 461 // Set the type by the attributes 462 $type = $attr['type']; 463 } 464 462 465 switch ($type) 463 466 { … … 479 482 $order = array 480 483 ( 484 'action', 485 'method', 481 486 'type', 482 487 'id',
