Changeset 4813

Show
Ignore:
Timestamp:
08/26/08 15:19:09 (10 months ago)
Author:
guilhermeblanco
Message:

fixes #1376. Fixed in both 0.11 and 1.0 branches. Thanks for the patch!

Location:
branches
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Record.php

    r4711 r4813  
    872872        } 
    873873 
    874         if (isset($this->_values[$fieldName])) { 
     874        if (array_key_exists($fieldName, $this->_values)) { 
    875875            return $this->_values[$fieldName]; 
    876876        } 
  • branches/1.0/lib/Doctrine/Record.php

    r4778 r4813  
    890890        } 
    891891 
    892         if (isset($this->_values[$fieldName])) { 
     892        if (array_key_exists($fieldName, $this->_values)) { 
    893893            return $this->_values[$fieldName]; 
    894894        }