1
0
mirror of synced 2025-01-18 22:41:43 +03:00

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

This commit is contained in:
phuson 2007-10-08 22:43:09 +00:00
parent 18857d77e4
commit dd076e47eb

View File

@ -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)) {