X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=metaform%2Ftemplate.php;h=e233f36817e2ef7bbc12b40f283f309f89c43b11;hb=a180ab5face98dd3ad4f90ccc4c96906f00d64f0;hp=0f3acf86adcf2df0a96099b0195d5a3933492842;hpb=5e7ba7c884bd114678e6308a7447e646dee7f838;p=wfpl.git diff --git a/metaform/template.php b/metaform/template.php index 0f3acf8..e233f36 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -149,7 +149,7 @@ function ~file_name~_main_delete($id) { function ~file_name~_csv_download() { require_once('code/wfpl/csv.php'); $rows = db_get_rows('~table_name~', 'id,'.~file_name upper~_DB_FIELDS, 'order by id'); - array_unshift($rows, explode(',',~file_name upper~_DB_FIELDS)); + array_unshift($rows, explode(',', 'id,'.~file_name upper~_DB_FIELDS)); array2d_to_csv_download($rows, '~file_name~.csv'); }