mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Simplified the code
This commit is contained in:
parent
f3d6513c65
commit
398185bc8e
@ -109,21 +109,8 @@ function reporting_make_reporting_data($report = null, $id_report,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$report = db_get_row ('treport', 'id_report', $id_report);
|
$report = db_get_row ('treport', 'id_report', $id_report);
|
||||||
|
$contents = db_get_all_rows_field_filter ('treport_content',
|
||||||
switch ($config["dbtype"]) {
|
'id_report', $id_report, db_escape_key_identifier('order'));
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$datetime = strtotime($date . ' ' . $time);
|
$datetime = strtotime($date . ' ' . $time);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user