2009/12/23 haijak <[email protected]>:
> The _return doesn't seem to work. At least no as I would expect.
>
> " if($theme->prev_page_link_return() != NULL or $theme-
>>next_page_link_return() != NULL){ "
>
> That always trips as positive. even when the don't seeme to return
> anything. I also tried !="", that had no change.

Hmm, it's actually returning an array with the name of the theme as
the key and null as the value, which is not what I expected. This
works, but since I don't know why it's returning that, it might be
flaky.

$prev = $theme->prev_page_link_return();
$next = $theme->next_page_link_return();
if($prev[$theme->name] != NULL or $next[$theme->name] != NULL){
 // your html here
}

I'll try to get someone who knows this part of the code better than me
to explain what's going on, and if there's a better way.

-- 
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to