captcha issue fix

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@645 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-08-24 22:03:46 +00:00
parent b07eb9bfb6
commit 1c8e8b88bf

View File

@ -32,7 +32,9 @@ function draw_captcha($security_code) {
//Create the image resource
$image = ImageCreate($width, $height);
imageantialias($image, true);
if(function_exists('imageantialias')) {
imageantialias($image, true);
}
//We are making three colors, white, black and gray
$white = ImageColorAllocate($image, 255, 255, 255);