simplesharebuttons icon indicating copy to clipboard operation
simplesharebuttons copied to clipboard

Undefined Indexes

Open Bogardo opened this issue 9 years ago • 2 comments

Please check the array indexes, they are triggering a lot of errors:

Notice: Undefined index: ssba_excerpts in simple-share-buttons-adder.php on line 771

// if we wish to add to excerpts
if($arrSettings['ssba_excerpts'] == 'Y') {

    // add a hook
    add_filter( 'the_excerpt', 'show_share_buttons');
}

Notice: Undefined index: ssba_selected_buttons in simple-share-buttons-adder.php on line 342

Notice: Undefined index: page in simple-share-buttons-adder.php on line 342

// check if any buttons have been selected
if ($arrSettings['ssba_selected_buttons'] == '' && $_GET['page'] != 'simple-share-buttons-adder') {

Bogardo avatar Jul 09 '14 08:07 Bogardo