Hello,
I am using ZC 1.51 and PHP 5.3
I am getting error logs generated in /myadmin/ct_sales_summary.php (not my real admin directory name).
PHP Warning: implode(): Invalid arguments passed in /public_html/myadmin/ct_sales_summary.php on line 72
PHP Code:$table_struct = "{cols:[{id:'date_purchased',label:'Date',type:'date'},
{id:'ot_total',label:'Sale',type:'number'}],
rows:[";
while(!$total_query->EOF){
$year = date("Y", $total_query->fields['date_purchased']);
$mon = date("m", $total_query->fields['date_purchased']);
$day = date("d", $total_query->fields['date_purchased']);
$date_display = (isset($monthly) && $monthly) ? date('F, Y', $total_query->fields['date_purchased']) : date('d F, Y', $total_query->fields['date_purchased']);
$data_array[] = "{c:[{v:new Date($year,($mon-1),$day),f:'" . $date_display . "'},{v:" . $total_query->fields['total'] . ",f:'" . $currencies->format($total_query->fields['total']) . " (" . $total_query->fields['order_count'] . " orders)'}]}";
$total_query->MoveNext();
}
$table_struct .= implode(',', $data_array); (this is line 72 in my file)
$table_struct .= " ]
}";
From what I've read, if it is correct, this is because $data_array is not an array and needs to be defined as such. This may be the case, however I do not know how or exactly where in the code to do this.
Thank you so much,
Sharon


Reply With Quote
