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);