Commit 25554aa0 authored by gnat's avatar gnat

fixed a problem with undefined array keys when fetching in array mode with multi level joins

parent 70c94fae
...@@ -65,7 +65,7 @@ class Doctrine_Hydrate_Array ...@@ -65,7 +65,7 @@ class Doctrine_Hydrate_Array
foreach ($data as $key => $val) { foreach ($data as $key => $val) {
$found = true; $found = true;
foreach ($element as $k => $e) { foreach ($element as $k => $e) {
if ($val[$k] !== $e) { if (isset($val[$k]) && $val[$k] !== $e) {
$found = false; $found = false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment