1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Fixes #964 - Fatal error on news page when social plugin not installed.

This commit is contained in:
Cameron 2015-04-14 15:32:54 -07:00
parent 7661394c04
commit a1d7fbd8c5

View File

@ -832,8 +832,12 @@ else
// Set the Values for the social shortcode usage.
$socialArray = array('url'=>e107::getUrl()->create('news/view/item', $news, 'full=1'), 'title'=>$tp->toText($news['news_title']));
e107::getScBatch('social')->setVars($socialArray);
$socialObj = e107::getScBatch('social');
if(is_object($socialObj))
{
$socialObj->setVars($socialArray);
}
if(function_exists("news_style")) // BC