I am trying to modify album.php to do the following:
If (certain criteria is met) { album(); exit; } else { collection(); exit; }
Where the functions collection and album are just the contents of colletion.php and album.php
If the criteria is met then all of the images in the album are displayed; however, if the criteria is not met then instead of showing all of the albums the message "Sorry, but there are no images or albums in this collection yet." appears.
I should also probably mention that instead of trying to call the function colleciton, I have also tried to redirect back to collection.php but then I get the error "warning cannot modify headers, header information already sent by..."