diff -ruBbdN cacti-0.8.7/graphs_new.php cacti-0.8.7-patched/graphs_new.php --- cacti-0.8.7/graphs_new.php 2007-10-23 18:43:08.000000000 -0400 +++ cacti-0.8.7-patched/graphs_new.php 2007-10-30 21:13:30.000000000 -0400 @@ -718,7 +718,11 @@ $sql_order = "ORDER BY snmp_index"; }else if ($xml_array["index_order_type"] == "natural") { $sql_order = "ORDER BY INET_ATON(snmp_index)"; + }else{ + $sql_order = ""; } + }else{ + $sql_order = ""; } /* get the unique field values from the database */