Custom Fields
Re-Envisioned
Support MB Admin Columns Undefined index in admin columns

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 2 years ago.

  • Creator
    Topic
  • #5750

    FED
    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!

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #5753

    Anh Tran
    Keymaster

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

Viewing 1 replies (of 1 total)

The topic ‘Undefined index in admin columns’ is closed to new replies.