Author: guilhermeblanco
Date: 2008-08-26 16:19:09 +0100 (Tue, 26 Aug 2008)
New Revision: 4813

Modified:
   branches/0.11/lib/Doctrine/Record.php
   branches/1.0/lib/Doctrine/Record.php
Log:
fixes #1376. Fixed in both 0.11 and 1.0 branches. Thanks for the patch!

Modified: branches/0.11/lib/Doctrine/Record.php
===================================================================
--- branches/0.11/lib/Doctrine/Record.php       2008-08-25 23:39:33 UTC (rev 
4812)
+++ branches/0.11/lib/Doctrine/Record.php       2008-08-26 15:19:09 UTC (rev 
4813)
@@ -871,7 +871,7 @@
             return $value;
         }
 
-        if (isset($this->_values[$fieldName])) {
+        if (array_key_exists($fieldName, $this->_values)) {
             return $this->_values[$fieldName];
         }
         

Modified: branches/1.0/lib/Doctrine/Record.php
===================================================================
--- branches/1.0/lib/Doctrine/Record.php        2008-08-25 23:39:33 UTC (rev 
4812)
+++ branches/1.0/lib/Doctrine/Record.php        2008-08-26 15:19:09 UTC (rev 
4813)
@@ -889,7 +889,7 @@
             return $value;
         }
 
-        if (isset($this->_values[$fieldName])) {
+        if (array_key_exists($fieldName, $this->_values)) {
             return $this->_values[$fieldName];
         }
         


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to