2008-10-02 Esteban Sanchez <estebans@artica.es>

* operation/reporting/reporting_viewer.php,
        operation/reporting/reporting_xml.php: Quote order field on
        get_db_all_rows_field_filter(), since it was a reserved word in SQL.
        Style corrections.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1129 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2008-10-02 09:46:27 +00:00
parent a553e8613d
commit 9152344de7
3 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2008-10-02 Esteban Sanchez <estebans@artica.es>
* operation/reporting/reporting_viewer.php,
operation/reporting/reporting_xml.php: Quote order field on
get_db_all_rows_field_filter(), since it was a reserved word in SQL.
Style corrections.
2008-10-02 Esteban Sanchez <estebans@artica.es> 2008-10-02 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Removed quotes when using $order_field so * include/functions_db.php: Removed quotes when using $order_field so

View File

@ -125,7 +125,7 @@ $table->rowclass = array ();
$table->rowclass[0] = 'datos3'; $table->rowclass[0] = 'datos3';
$group_name = dame_grupo ($report['id_group']); $group_name = dame_grupo ($report['id_group']);
$contents = get_db_all_rows_field_filter ("treport_content","id_report",$id_report,"order"); $contents = get_db_all_rows_field_filter ("treport_content", "id_report", $id_report, "`order`");
if ($contents === false) { if ($contents === false) {
return; return;
}; };
@ -163,7 +163,7 @@ foreach ($contents as $content) {
$data[2] = "<h4>".human_time_description ($content['period'])."</h4>"; $data[2] = "<h4>".human_time_description ($content['period'])."</h4>";
array_push ($table->data, $data); array_push ($table->data, $data);
$result = get_db_all_rows_field_filter ("tgraph_source","id_graph",$content['id_gs']); $result = get_db_all_rows_field_filter ("tgraph_source", "id_graph", $content['id_gs']);
$modules = array (); $modules = array ();
$weights = array (); $weights = array ();
if ($result === false) if ($result === false)

View File

@ -64,7 +64,7 @@ if ($datetime > time ()) {
} }
$group_name = dame_grupo ($report['id_group']); $group_name = dame_grupo ($report['id_group']);
$contents = get_db_all_rows_field_filter ("treport_content","id_report",$id_report,"order"); $contents = get_db_all_rows_field_filter ('treport_content', 'id_report', $id_report, '`order`');
$xml["id"] = $id_report; $xml["id"] = $id_report;
@ -209,10 +209,10 @@ foreach ($contents as $content) {
$data["objdata"] .= "]]>"; $data["objdata"] .= "]]>";
break; break;
} }
array_push ($xml["reports"],$data); array_push ($xml["reports"], $data);
} }
header('Content-type: application/xml; charset="utf-8"',true); header ('Content-type: application/xml; charset="utf-8"',true);
function xml_array ($array) { function xml_array ($array) {