Code: Select all
$sql = "SELECT color_id " .
"FROM plugin_aggregate_color_template_items " .
"WHERE color_template_id = " . $_color_templates[$i] .
" LIMIT " . ($_selected_graph_index % $num_colors) . ",1";
Changing line 184 to this fixes the bug:
Code: Select all
" ORDER BY sequence LIMIT " . ($_selected_graph_index % $num_colors) . ",1";