Index: img_assist.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/img_assist/img_assist.module,v
retrieving revision 1.72
diff -u -p -r1.72 img_assist.module
--- img_assist.module	6 Apr 2008 17:32:33 -0000	1.72
+++ img_assist.module	29 Sep 2008 14:31:48 -0000
@@ -153,7 +153,7 @@ function img_assist_textarea($element) {
   $link = variable_get('img_assist_link', 'icon');
   if (($link == 'icon') || ($link == 'text')) {
     if (_img_assist_textarea_match($element['#id']) && _img_assist_page_match() && !strstr($_GET['q'], 'img_assist')) {
-      if (user_access('access img_assist')) {
+      if (user_access('access img_assist') && isset($element['#suffix'])) {
         $output = theme('img_assist_textarea_link', $element, $link);
         $element['#suffix'] .= $output;
       }
