Undefined index in admin columns

Support MB Admin Columns Undefined index in admin columns

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5750
    FEDFED
    Participant

    Hi, I'm using the Admin Columns plugin to display data from a dropdown. If there is nothing selected, the following notice displays: Notice: Undefined index: in /home/ubuntu/app/wp/wp-content/plugins/meta-box/inc/fields/choice.php on line 129

    Wrapping that block in an isset fixes the notice:

    
        if ( isset( $options[ $value ] ) ){
      	return $options[ $value ]->label;
        }
    

    Thanks for all these great plugins!

    #5753
    Anh TranAnh Tran
    Keymaster

    Hi FED, thanks for your feedback. I will update the code now.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Undefined index in admin columns’ is closed to new replies.