mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fixes #965 - error if social prefs missing.
This commit is contained in:
@@ -12,7 +12,11 @@ class social_admin
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$pref = e107::pref('core','social_login');
|
$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