From dd076e47eb67ed7530142df24f94dd6196febd0a Mon Sep 17 00:00:00 2001 From: phuson Date: Mon, 8 Oct 2007 22:43:09 +0000 Subject: [PATCH] added logic check for when $models array is empty, but $specifiedModels isn't --- lib/Doctrine/Data/Export.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Doctrine/Data/Export.php b/lib/Doctrine/Data/Export.php index 1e84a16a0..6bb1fbf7b 100644 --- a/lib/Doctrine/Data/Export.php +++ b/lib/Doctrine/Data/Export.php @@ -58,6 +58,12 @@ class Doctrine_Data_Export extends Doctrine_Data $outputAll = true; + // for situation when the $models array is empty, but the $specifiedModels array isn't + if (empty($models)) + { + $models = $specifiedModels; + } + foreach ($models AS $name) { if (!empty($specifiedModels) AND !in_array($name, $specifiedModels)) {