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 -N -r1.2 -r1.2.2.1 --- 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 3 Dec 2003 22:52:32 -0000 1.2.2.1 @@ -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