Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Trying to get property of non-object #254

Open
shprink opened this issue Feb 15, 2012 · 7 comments
Open

Trying to get property of non-object #254

shprink opened this issue Feb 15, 2012 · 7 comments
Labels

Comments

@shprink
Copy link

shprink commented Feb 15, 2012

Hi,

I wonder why you guys treat $result as an object after explicitly checking that it is not one.

if (! is_object ( $result ))
return KunenaRoute::_ ( KUNENA_LIVEURLREL . '&func=showcat&catid=' . $result->catid, $xhtml );

the result is that error: Notice: Trying to get property of non-object in /var/www/html/htdocs/components/com_kunena/lib/kunena.link.class.php on line 507

Line: https://github.com/Kunena/Kunena-1.6/blob/master/components/com_kunena/lib/kunena.link.class.php#L507

Any idea?

@shprink
Copy link
Author

shprink commented Feb 27, 2012

up. thanks

@shprink
Copy link
Author

shprink commented Mar 27, 2012

anyone?

@xillibit
Copy link
Member

You may have this issue when the query before return nothing

@osCMattiFinn
Copy link

Thats really funny.... I guess they were too embarrassed to reply re. such a silly error!

1 similar comment
@osCMattiFinn
Copy link

Thats really funny.... I guess they were too embarrassed to reply re. such a silly error!

@shprink
Copy link
Author

shprink commented Jun 13, 2012

Is it going to be fixed someday or have you given up on this version?

@xillibit
Copy link
Member

We are going to make an another release in k1.7 series, so this will fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants