When saving a new node with media files, i get this warning.

    foreach ($form_state['values'][$field_name][$lang] as $value) {
      if ($value['fid']) {
        $has_value = TRUE;

adding !empty() fixes this, but i will investigate this further


ParisLiakos’s picture

Status: Active » Fixed

Yeah Add Media is not an array value thats why the warning.
I think this is due to PHP 5.4

Commited to 2.x and 1.x as well

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.