fixed error
This commit is contained in:
parent
f25aacf108
commit
dcce09befd
|
@ -31,14 +31,6 @@ function reporting_xml_get_report($report, $filename, $return=false)
|
|||
unset($report['private']);
|
||||
unset($report['custom_logo']);
|
||||
// ----------------------------------------------------------------------
|
||||
// change agent name.
|
||||
if (count($report['contents']) > 0) {
|
||||
for ($i = 0; $i < count($report['contents']); $i++) {
|
||||
$aux = explode('-', $report['contents'][$i]['subtitle']);
|
||||
$report['contents'][$i]['subtitle'] = db_get_value('alias', 'tagente', 'nombre', $report['contents'][$i]['agent_name']).' -'.$aux[1];
|
||||
}
|
||||
}
|
||||
|
||||
// Remove entities.
|
||||
$report = io_safe_output($report);
|
||||
|
||||
|
|
Loading…
Reference in New Issue