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:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user