contao/import — Issue #115: Bug in file DC_Table.php in generateTree function
Author: importer
Created: 2011-11-29 15:42:33+00:00
State: open
Labels: backend, Defect

In the file DC_Table.php at line 2434 :

```
foreach ($showFields as $k=>$v)
{
if (in_array($GLOBALS['TL_DCA'][$table]['fields']['$k']['flag'], array(5, 6, 7, 8, 9, 10)))
{
$args[$k] = date($GLOBALS['TL_CONFIG']['datimFormat'], $objRow->$v);
}

```

you can see that $k is used instead of $v in :

```
$GLOBALS['TL_DCA'][$table]['fields']['$k']['flag']
```

--- _Originally created by Chriscool on September 21st, 2008, at 03:47pm (ID 115)_