mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Clear libxml errors in toRSS test. Forum shortcode fix.
This commit is contained in:
@@ -154,7 +154,7 @@ class forum_shortcodes extends e_shortcode
|
||||
// To be reworked to get the $forum var
|
||||
$trackPref = varset($this->prefs['track']);
|
||||
|
||||
if(!empty($trackPref) && $forum->checkPerm($this->var['forum_id'], 'post'))
|
||||
if(!empty($trackPref) && is_object($forum) && $forum->checkPerm($this->var['forum_id'], 'post'))
|
||||
{
|
||||
$uInfo[2] = "<a href='".e107::url('forum','track')."'>".LAN_FORUM_0030."</a>";
|
||||
}
|
||||
|
Reference in New Issue
Block a user