Support

Account

Home Forums General Issues How to fix error end() expects parameter 1 to be array? Reply To: How to fix error end() expects parameter 1 to be array?

  • You need to test to make sure the field returns an array before using end(). If the field has no value it will return NULL.

    
    if (is_array($test)) {
      // do stuff with the array
    }