fix to allow fieldlist like array('id','owner') instead of only ('id'=>'id','owner'=>'owner')

This commit is contained in:
Ralf Becker 2004-03-07 09:54:37 +00:00
parent 3803f842f3
commit 9c9892c9b7

View File

@ -89,6 +89,10 @@
foreach($fields as $field => $value) foreach($fields as $field => $value)
{ {
/* Depending on how the array was built, this is needed. */ /* Depending on how the array was built, this is needed. */
if (is_int($field))
{
$field = $value;
}
if(@is_int($value)) if(@is_int($value))
{ {
$value = $field; $value = $field;