diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 7b2c03672e9..a865b739054 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1578,7 +1578,7 @@ PHP_FUNCTION(imagecolorat) ZEND_FETCH_RESOURCE(im, gdImagePtr, IM, -1, "Image", le_gd); #if HAVE_LIBGD20 - if(im->truecolor) { + if(im->trueColor) { php_error(E_WARNING, "ImageColorAt does not work on TrueColor images"); RETURN_FALSE; }