Iエve found one way to fix this problem.
In the index page of module (myalbum/index.php), search this code:
Quote:
// Assign Latest Photos
$prs = $xoopsDB->query( "SELECT l.lid, l.cid, l.title, l.ext, l.res_x, l.res_y, l.status, l.date, l.hits, l.rating, l.votes, l.comments, l.submitter, t.description,c.title AS cat_title FROM $table_photos l LEFT JOIN $table_text t ON l.lid=t.lid LEFT JOIN $table_cat c ON l.cid=c.cid WHERE l.status>0 ORDER BY date DESC" , $num , $pos ) ;
while( $fetched_result_array = $xoopsDB->fetchArray( $prs ) ) {
$xoopsTpl->append_by_ref( 'photos' , myalbum_get_array_for_photo_assign( $fetched_result_array , true ) ) ;
}
Where you read: $xoopsTpl->append_by_ref( 'photos' , myalbum_get_array_for_photo_assign( $fetched_result_array , true ) ) ;
You must change the funtion
append_by_ref to
appendThe final correction must be:
Quote:
// Assign Latest Photos
$prs = $xoopsDB->query( "SELECT l.lid, l.cid, l.title, l.ext, l.res_x, l.res_y, l.status, l.date, l.hits, l.rating, l.votes, l.comments, l.submitter, t.description,c.title AS cat_title FROM $table_photos l LEFT JOIN $table_text t ON l.lid=t.lid LEFT JOIN $table_cat c ON l.cid=c.cid WHERE l.status>0 ORDER BY date DESC" , $num , $pos ) ;
while( $fetched_result_array = $xoopsDB->fetchArray( $prs ) ) {
$xoopsTpl->append( 'photos' , myalbum_get_array_for_photo_assign( $fetched_result_array , true ) ) ;
}
Mr. Gijoe, please, check this code to adpat it to Php 5.0.5
Thank you!