All you have to do is to insert 2 lines.
line 68 in viewcat.php
} else if( $uid != 0 ) {
// This means 'my photo'
if( $uid < 0 ) {
$where = "submitter=$my_uid" ;
$get_append = "uid=-1" ;
$xoopsTpl->assign( 'uid' , -1 ) ;
$xoopsTpl->assign( 'album_sub_title' , _ALBM_TEXT_SMNAME4 ) ;
$xoopsTpl->assign( 'xoops_pagetitle' , _ALBM_TEXT_SMNAME4 ) ;
// uid Specified
} else {
$where = "submitter=$uid" ;
$get_append = "uid=$uid" ;
$xoopsTpl->assign( 'uid' , $uid ) ;
$xoopsTpl->assign( 'album_sub_title' , "<img src='$mod_url/images/myphotos.gif' alt='' />" . myalbum_get_name_from_uid( $uid ) ) ;
$xoopsTpl->assign( 'xoops_pagetitle' , myalbum_get_name_from_uid( $uid ) ) ;
}
$join_append = "LEFT JOIN $table_cat c ON l.cid=c.cid" ;
$select_append = ', c.title AS cat_title' ;
} else {