Joomla & K2 // PHP Notice: Undefined property: stdClass::$numOfComments

in /components/com_k2/views/item/view.html.php Change : $total = $item->numOfComments; to : $total = (isset($item->numOfComments) ? $item->numOfComments : 0);
Solution to the K2 error :
PHP Notice: Undefined property: stdClass::$numOfComments

/components/com_k2/views/item/view.html.php

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.