Kunena/Kunena-1.6 — Issue #254: Trying to get property of non-object
Author: shprink
Created: 2012-02-15 05:42:04+00:00
State: open

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?