Changeset 2673

Show
Ignore:
Timestamp:
05/14/08 13:34:52 (2 months ago)
Author:
Shadowhand
Message:

Follow up to r2672, fixing a bug that could cause "undefined index" errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/system/libraries/ORM.php

    r2672 r2673  
    169169                        if (empty($this->object_related[$key]['cur'])) 
    170170                        { 
     171                                // Create an array 
     172                                $this->object_related[$key]['cur'] = array(); 
     173 
    171174                                // Foreign key 
    172175                                $fk = inflector::singular($key).'_id';