Преглед изворни кода

Fixing error: call_user_func_array() expects parameter 2 to be array, string given in /local/sites/drupal/sites/dev.citrusgenomedb.org/modules/tripal_cv/charts.php on line 18.

mestato пре 14 година
родитељ
комит
86062c911f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tripal_cv/charts.php

+ 1 - 1
tripal_cv/charts.php

@@ -15,7 +15,7 @@ function tripal_cv_chart($chart_id){
 
   // now call the function in the module responsible for the chart.  This 
   // should call the tripal_cv_count_chart with the proper parameters set
-  $opt = call_user_func_array($callback,$chart_id);
+  $opt = call_user_func_array($callback,array($chart_id));
 
   // build the JSON array to return to the javascript caller
   $json_arr = tripal_cv_count_chart($opt[count_mview],$opt[cvterm_id_column],