fixed bug in column_data_implode: numerical keys where used if $only===true

This commit is contained in:
Ralf Becker 2005-11-23 08:56:43 +00:00
parent f043f76be2
commit 4169bd99e1

View File

@ -1151,7 +1151,8 @@
$keys = $values = array();
foreach($array as $key => $data)
{
if (is_int($key) || !$only || $only === True && isset($column_definitions[$key]) || is_array($only) && in_array($key,$only))
if (is_int($key) && $only === false || !$only || $only === True && isset($column_definitions[$key]) ||
is_array($only) && in_array($key,$only))
{
$keys[] = $this->name_quote($key);