Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormpwj2
    • CommentTimeJan 4th 2010
     
    Hi all,

    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.

    Does anyone know what I'm doing wrong?

    Thanks
    • CommentAuthormpwj2
    • CommentTimeJan 6th 2010
     
    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..."