Index: image_pub.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image_pub/Attic/image_pub.module,v
retrieving revision 1.11.2.4
diff -u -p -r1.11.2.4 image_pub.module
--- image_pub.module	20 Oct 2007 18:01:43 -0000	1.11.2.4
+++ image_pub.module	18 Dec 2007 12:51:36 -0000
@@ -457,7 +457,7 @@ function _image_pub_gr_fetch_albums($ref
       $pname = 0;
       if (!empty($term->parents[0])) {
         $pterm = _image_pub_album_get($term->parents[0]);
-        $pname = $pterm->tid;
+        $pname = _image_pub_gr_get_albumname($pterm);
         if ($refnum) {
           $pname = $aidref[$pname];   // Guaranteed to exist?
         } else {
