Show
Ignore:
Timestamp:
12/06/2007 08:15:37 PM (13 months ago)
Author:
Shadowhand
Message:

Changes to core:

  • date::timestamp() variable name typo
  • form::input() no longer puts an id on array-keyed inputs
  • form::label() no longer
  • added arr::unshift_assoc()
  • replace a couple of internal find_all() calls with load_result(TRUE) to avoid an extra method call
  • fixed a bug in Mysql_Result::result_array() that made multiple calls fail after the first call do to the pointer not being reset
  • small code and comment cleanups
Files:
1 modified

Legend:

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

    r1333 r1437  
    141141 
    142142                // Form elements should have the same id as name 
    143                 if ( ! isset($data['id'])) 
     143                if ( ! isset($data['id']) AND strpos($data['name'], '[') === FALSE) 
    144144                { 
    145145                        $data['id'] = $data['name']; 
     
    444444                        } 
    445445 
    446                         $data = array 
    447                         ( 
    448                                 'for' => $data 
    449                         ); 
     446                        $data = empty($data) ? array() : array('for' => $data); 
    450447                } 
    451448