--- _textimage.module.cvs	2006-09-05 23:48:18.000000000 -0500
+++ textimage.module	2006-09-05 23:53:00.000000000 -0500
@@ -74,7 +74,7 @@ function textimage_settings() {
 	
   //check for GD
   if (!function_exists(imagecreate)) 
-    drupal_set_message(t('Image library not available. Textimage needs the GD library extension to be installed. Please install GD.'));
+    drupal_set_message(t('Image library not available. Textimage needs the GD library extension to be installed. Please install GD.'), 'error');
 
 	//check for TTF support
 	elseif (!function_exists(imagettftext))
@@ -214,12 +214,14 @@ function textimage_settings() {
   if (isset($images_path)) {
     $imagefontinfo .= '<br />'.t('Number of background images found: ').count(_textimage_image_list());
   }
-
-  $gdinfo = gd_info();
-  $imagefontinfo .= '<br />'.t('GD Version: ').$gdinfo["GD Version"];
-  $imagefontinfo .= '<br />'.t(' FreeType Support: ');
-  $imagefontinfo .= ($gdinfo["FreeType Support"]==true) ? 'True' : 'False';
-  $imagefontinfo .= '<br />';
+	
+	if (function_exists('gd_info')) {
+  	$gdinfo = gd_info();
+  	$imagefontinfo .= '<br />'.t('GD Version: ').$gdinfo["GD Version"];
+  	$imagefontinfo .= '<br />'.t(' FreeType Support: ');
+  	$imagefontinfo .= ($gdinfo["FreeType Support"]==true) ? 'True' : 'False';
+  	$imagefontinfo .= '<br />';
+	}
 
   $form['info']['captcha_info'] = array (
                            '#type' => 'item',
