Simplified the code

This commit is contained in:
Alejandro Gallardo Escobar 2015-07-10 15:11:34 +02:00
parent f3d6513c65
commit 398185bc8e
1 changed files with 2 additions and 15 deletions

View File

@ -109,21 +109,8 @@ function reporting_make_reporting_data($report = null, $id_report,
}
else {
$report = db_get_row ('treport', 'id_report', $id_report);
switch ($config["dbtype"]) {
case "mysql":
$contents = db_get_all_rows_field_filter ("treport_content",
"id_report", $id_report, "`order`");
break;
case "postgresql":
$contents = db_get_all_rows_field_filter ("treport_content",
"id_report", $id_report, '"order"');
break;
case "oracle":
$contents = db_get_all_rows_field_filter ("treport_content",
"id_report", $id_report, '"order"');
break;
}
$contents = db_get_all_rows_field_filter ('treport_content',
'id_report', $id_report, db_escape_key_identifier('order'));
}
$datetime = strtotime($date . ' ' . $time);