Error with helper.social.php

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jul 04, 2015 11:47 pm
Reply with quote
Report this post
Hi,

I just installed the News2 template manually (not the quickstart)

I get an error message

Notice: Undefined offset: 0 in /............./templates/gk_news2/lib/framework/helper.social.php on line 28

Any idea ?
Thanks for your help
User avatar
Senior Boarder

GK User
Wed Jul 08, 2015 6:42 am
Reply with quote
Report this post
Hello,

Please change in the helper.social.php file line:

Code: Select all
if(is_array($excluded_categories) && $excluded_categories[0] == '') $excluded_categories = array(0);


to:

Code: Select all
if(is_array($excluded_categories) && count($excluded_categories) > 0 && $excluded_categories[0] == '') $excluded_categories = array(0);


We will include this fix in the next update.
User avatar
Administrator

GK User
Wed Jul 08, 2015 10:17 am
Reply with quote
Report this post
Thanks.
Worked perfectly :D
User avatar
Senior Boarder


cron