added logic check for when $models array is empty, but $specifiedModels isn't
This commit is contained in:
parent
18857d77e4
commit
dd076e47eb
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user