Index: taxonomy_image/taxonomy_image.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_image/taxonomy_image.module,v retrieving revision 1.12.4.13.2.29 diff -u -u -p -r1.12.4.13.2.29 taxonomy_image.module --- taxonomy_image/taxonomy_image.module 1 Feb 2009 19:23:10 -0000 1.12.4.13.2.29 +++ taxonomy_image/taxonomy_image.module 7 Feb 2009 13:13:04 -0000 @@ -243,7 +243,7 @@ function taxonomy_image_get_object($tid, $image[$tid]->url = file_create_url($image[$tid]->path); } // Get more properties if we had an image. - if ($image[$tid]->path) { + if (!empty($image[$tid]->path)) { $image[$tid]->tid = $tid; $img = getimagesize($image[$tid]->path); // Make sure it worked. @@ -259,7 +259,7 @@ function taxonomy_image_get_object($tid, $image[$tid]->type_extension = $exts[$img[2]]; $image[$tid]->tags = $img[3]; $image[$tid]->bits = $img['bits']; - $image[$tid]->channels = $img['channels']; + $image[$tid]->channels = isset($img['channels']) ? $img['channels'] : ''; $image[$tid]->mime = $img['mime']; $image[$tid]->term = drupal_get_path_alias(taxonomy_term_path(taxonomy_get_term($tid))); $image[$tid]->img = '