Does anyone know if there is a similar function to assertForumValidAndViewable? I have had a look, but to no avail.
I was hoping to use it to check the status of a forum, but it throws an error if the forum is not valid and viewable, rather than returning nothing.
Ideally, it would *only* return an array if the forum was, and otherwise be null, but this is not the case.
My code doesn't function as expected because the error is generated as per the function, rather than giving a return of null.
I don't really want to copy and modify an entire function when it so nearly meets my needs.
I was hoping to use it to check the status of a forum, but it throws an error if the forum is not valid and viewable, rather than returning nothing.
Ideally, it would *only* return an array if the forum was, and otherwise be null, but this is not the case.
My code doesn't function as expected because the error is generated as per the function, rather than giving a return of null.
I don't really want to copy and modify an entire function when it so nearly meets my needs.