Skip to content

Commit 146b21d

Browse files
committed
Merge pull request #5 from ftzdomino/patch-1
Fix error when loading Image_Canvas_Color
2 parents 3667694 + df677f3 commit 146b21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Image/Canvas/Color.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function color2RGB($color)
150150
* @return array Array of all the colors, one element for each color.
151151
* @access public
152152
*/
153-
function getRange ($degrees)
153+
function getRange ($degrees = 2)
154154
{
155155
$tempColors = parent::getRange($degrees);
156156

@@ -184,4 +184,4 @@ function _setColors ( $col1, $col2 )
184184
$this->color2 = Image_Canvas_Color::color2RGB($col2);
185185
}
186186
}
187-
?>
187+
?>

0 commit comments

Comments
 (0)