added logic check for when $models array is empty, but $specifiedModels isn't
This commit is contained in:
parent
18857d77e4
commit
dd076e47eb
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue