Index: openacs-4/packages/photo-album/tcl/photo-album-procs.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/tcl/photo-album-procs.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/photo-album/tcl/photo-album-procs.xql 12 Jun 2003 06:55:45 -0000 1.2 +++ openacs-4/packages/photo-album/tcl/photo-album-procs.xql 18 Nov 2003 18:55:29 -0000 1.3 @@ -14,7 +14,7 @@ ci.item_id from cr_items ci, cr_child_rels ccr -where ci.live_revision is not null +where ci.latest_revision is not null and ci.content_type = 'pa_photo' and ccr.parent_id = :album_id and ci.item_id = ccr.child_id