Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedYeah
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