From 37e8fa337a5f99b7057a689fadc4170d198d7628 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 3 Sep 2015 10:40:17 -0700 Subject: [PATCH] Issue #1176 string offset as an array error. --- e107_plugins/social/e_comment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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']); + } }