From 3afd5bc9df007473fdc53af22516b236c7f2d11c Mon Sep 17 00:00:00 2001 From: Date: Fri, 10 Aug 2007 20:33:12 -0400 Subject: [PATCH] Fixed minor bug in the scruffy code. --- app/controllers/graph_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/graph_controller.rb b/app/controllers/graph_controller.rb index 0d02446..8a11a42 100644 --- a/app/controllers/graph_controller.rb +++ b/app/controllers/graph_controller.rb @@ -16,7 +16,8 @@ class GraphController < ApplicationController # set the labels or create an empty hash @graph.labels = options[:interval_labels] \ - if options.has_key?(:labels) and options[:labels].class = Hash + if options.has_key?(:interval_labels) and \ + options[:interval_labels].class = Hash @graph.x_axis_label = options[:x_axis_label] \ if options.has_key?(:x_axis_label) @graph.y_axis_label = options[:y_axis_label] \ -- 2.30.2