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/libraries/ORM.php

    r1419 r1437  
    229229 
    230230                        // Find requested objects 
    231                         return isset($all) ? $this->find_all() : $this->find(); 
     231                        return isset($all) ? $this->load_result(TRUE) : $this->find(); 
    232232                } 
    233233 
     
    259259                        } 
    260260 
    261                         return $model->find_all(); 
     261                        return $model->load_result(TRUE); 
    262262                } 
    263263 
     
    619619                                $class = get_class($this); 
    620620 
     621                                $result = $result->result_array(); 
     622 
    621623                                $array = array(); 
    622                                 foreach($result->result_array() as $row) 
     624                                foreach($result as $row) 
    623625                                { 
    624626                                        // Add object to the array