From 13027a956dc9181cc6cc9a3ea52d01d23341ba2b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 3 Mar 2006 07:03:15 +0000 Subject: [PATCH] Don't need to use intval() on $allocated in fetch_colour() --- graph_pie.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph_pie.php b/graph_pie.php index 2695e28..9a82331 100644 --- a/graph_pie.php +++ b/graph_pie.php @@ -308,9 +308,9 @@ class Graph_Pie array(90, 15, 24), array(45, 130, 195) ); - static $allocated; + static $allocated = 0; - $colour = $colourlist[ intval($allocated) ]; + $colour = $colourlist["$allocated"]; $allocated++; return imagecolorallocate($this->image, $colour[0], $colour[1], $colour[2]); -- 2.43.5