cvs: pear /Image_Color Color.php

From: Date: Sat, 18 May 2002 11:36:12 +0000
Subject: cvs: pear /Image_Color Color.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3923@lists.php.net to get a copy of this message
dallen Sat May 18 07:36:12 2002 EDT Modified files: /pear/Image_Color Color.php Log: @ added str_replace('#', '', $color) in _splitColor so having '#' does not kill return values Index: pear/Image_Color/Color.php diff -u pear/Image_Color/Color.php:1.6 pear/Image_Color/Color.php:1.7 --- pear/Image_Color/Color.php:1.6 Sat May 18 07:08:06 2002 +++ pear/Image_Color/Color.php Sat May 18 07:36:12 2002 @@ -16,7 +16,7 @@ // | Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: Color.php,v 1.6 2002/05/18 11:08:06 dallen Exp $ +// $Id: Color.php,v 1.7 2002/05/18 11:36:12 dallen Exp $ /** * Color @@ -465,6 +465,7 @@ */ function _splitColor ( $color ) { + $color = str_replace('#', '', $color); $c[] = hexdec( substr( $color, 0, 2 ) ); $c[] = hexdec( substr( $color, 2, 2 ) ); $c[] = hexdec( substr( $color, 4, 2 ) );

« previous php.pear.cvs (#3923) next »