1
Hello,
I am getting an error when accessing the IBP module.
I know the error stems from the PM code on my Theme(Montisarts 3 new themes) versus the changed code by the IPB files in the PM section.
The code in question is:
GLOBAL $xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid = $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $uid));
$msgcount = $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount', $msgcount);
<----this being line 69?>
_tpl_vars['msgcount'] > 0): ?>
Inbox (_tpl_vars['msgcount']; ?>
) InboxGiving an error:
Fatal error: Call to a member function on a non-object in theme.html on line 69
Can anyoneshed some light on the incorrect variables or code?
Thanks.