1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Fixes #965 - error if social prefs missing.

This commit is contained in:
Cameron
2015-04-15 12:49:39 -07:00
parent f37f252d66
commit f3cdc78621

View File

@@ -12,7 +12,11 @@ class social_admin
function __construct()
{
$pref = e107::pref('core','social_login');
$this->twitterActive = vartrue($pref['Twitter']['keys']['key']);
if(!empty($pref))
{
$this->twitterActive = vartrue($pref['Twitter']['keys']['key']);
}
}