mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-09 01:25:22 +01:00
fix to allow fieldlist like array('id','owner') instead of only ('id'=>'id','owner'=>'owner')
This commit is contained in:
parent
3803f842f3
commit
9c9892c9b7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user