Viewing 4 reply threads
  • Author
    Posts
    • #282
      James Mc
      Member

      While working on a plugin idea, I had created a bunch of stub (field-less) meta boxes for a CPT. Trying to save the post caused:

      Notice: Undefined offset: 0 in /var/www/httpdocs/wp-content/plugins/piklist/includes/class-piklist-form.php on line 1037

      I found that rearranging the conditions helped short circuit before the offending condition generating the notice was reached. Ex:

      if (is_array($meta) && count($meta) == 1 && $meta[0])

      … as opposed to…

      if (is_array($meta) && $meta[0] && count($meta) == 1)

    • #389
      Steve
      Keymaster

      @James Mc– This will be fixed in version 0.6.7.

    • #397
      Steve
      Keymaster

      v0.6.7 has been released

    • #434
      James Mc
      Member

      Confirmed fixed in v0.6.7

    • #435
      Steve
      Keymaster

      nice! closing topic.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.