mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fixed PHP Warning: array_key_exists(): The first argument should be either a string or an integer
This commit is contained in:
parent
a5fc76490c
commit
dbced2bf48
@ -249,11 +249,13 @@ class infolog_tracking extends bo_tracking
|
|||||||
);
|
);
|
||||||
$header_done = true;
|
$header_done = true;
|
||||||
}
|
}
|
||||||
|
//error_log(__METHOD__."() $name: data['#$name']=".array2string($data['#'.$name]).", field[values]=".array2string($field['values']));
|
||||||
$details['#'.$name] = array(
|
$details['#'.$name] = array(
|
||||||
'label' => $field['label'],
|
'label' => $field['label'],
|
||||||
'value' => (is_array($field['values']) && !empty($field['values']) && isset($data['#'.$name]) &&
|
'value' => is_array($field['values']) && $field['values'] && isset($data['#'.$name]) &&
|
||||||
array_key_exists($data['#'.$name],$field['values']))?$field['values'][$data['#'.$name]] : $data['#'.$name],
|
array_key_exists((string)$data['#'.$name],$field['values']) ? $field['values'][$data['#'.$name]] : $data['#'.$name],
|
||||||
);
|
);
|
||||||
|
//error_log("--> details['#$name']=".array2string($details['#'.$name]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $details;
|
return $details;
|
||||||
|
Loading…
Reference in New Issue
Block a user