Kunena / Kunena-1.6

Forum component for Joomla. Deprecated 1.6 / 1.7 Development Branch
https://www.kunena.org
15 stars 14 forks source link

Trying to get property of non-object #254

Open shprink opened 12 years ago

shprink commented 12 years ago

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 commented 12 years ago

up. thanks

shprink commented 12 years ago

anyone?

xillibit commented 12 years ago

You may have this issue when the query before return nothing

osCMattiFinn commented 12 years ago

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

osCMattiFinn commented 12 years ago

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

shprink commented 12 years ago

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

xillibit commented 12 years ago

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