Commit dd076e47 authored by phuson's avatar phuson

added logic check for when $models array is empty, but $specifiedModels isn't

parent 18857d77
......@@ -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)) {
......
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