• I noticed this error upon using the widget.

    NOTICE (8): Undefined offset: 0
    #0 {main} at /wp-content/plugins/woocommerce-product-category-selection-widget/class-wc-widget-product-categories2.php:139

    However, I suggest this code below.

    if( !empty($res) && $res[0]->option_value )

    instead of

    if ( $res[0]->option_value )

The topic ‘Fix for this issue Undefined offset: 0’ is closed to new replies.