From 4339ab132de283d4faa98c3a1c5f4b381632f8dc Mon Sep 17 00:00:00 2001 From: Moshe Harush Date: Mon, 18 Jul 2016 14:38:14 +0300 Subject: [PATCH 1/2] Fix PHP Notices: Undefined index: author Undefined index: sections --- chartbeat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chartbeat.php b/chartbeat.php index 6130256..5ea45e0 100644 --- a/chartbeat.php +++ b/chartbeat.php @@ -316,8 +316,8 @@ function add_chartbeat_config(){ - _sf_async_config.authors = ""; - _sf_async_config.sections = ""; + _sf_async_config.authors = ""; + _sf_async_config.sections = ""; Date: Mon, 18 Jul 2016 16:00:40 +0300 Subject: [PATCH 2/2] Remove on return becuase is Undefined variable --- chartbeat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chartbeat.php b/chartbeat.php index 5ea45e0..a990202 100644 --- a/chartbeat.php +++ b/chartbeat.php @@ -328,7 +328,7 @@ function add_chartbeat_footer() { // if visitor is admin AND tracking is off, do not load chartbeat if ( current_user_can( 'manage_options') && get_option('chartbeat_trackadmins') == 0) - return $analytics ; + return ; ?>