diff --git a/e107_plugins/social/e_comment.php b/e107_plugins/social/e_comment.php index 7c9787448..1a1578d47 100644 --- a/e107_plugins/social/e_comment.php +++ b/e107_plugins/social/e_comment.php @@ -18,7 +18,11 @@ class social_comment function __construct() { $social = e107::pref('core','social_login'); - $this->facebookActive = vartrue($social['Facebook']['keys']['id']); + + if(!empty($social)) + { + $this->facebookActive = vartrue($social['Facebook']['keys']['id']); + } }