Browse Source

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 years ago
parent
commit
86062c911f
1 changed files with 1 additions and 1 deletions
  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],