From 1c8e8b88bf07af23876803290b031b3e3a385d1e Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Mon, 24 Aug 2009 22:03:46 +0000 Subject: [PATCH] captcha issue fix git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@645 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/captcha.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/messenger/webim/libs/captcha.php b/src/messenger/webim/libs/captcha.php index d7be0399..3515aa4e 100644 --- a/src/messenger/webim/libs/captcha.php +++ b/src/messenger/webim/libs/captcha.php @@ -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);