Thanks. $prev[$theme->name] was getting warnings for me. It's seems
like there must be a simpler way. I honestly don't really know why any
theme functions generate any direct output to begin with. It's far
less functional for theme designs. Everything else works properly the
$post function or object or what ever you guys call it is fantastic.
But this is kind of screwy to me.

Then again I learned programing 20 years ago as a hobby. Object
oriented coding has all ways seemed screwy to me. I have never seen a
object do something simpler or easier than a function returning an
array.

On Dec 22, 6:46 pm, "Michael C. Harris" <[email protected]>
wrote:
> 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.

-- 
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