Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Richard K

    (@rkorebrits)

    I’ve wrapped it now to remove the errors

    if(is_array($file_ids) && count($file_ids)) {

    Plugin Author Anh Tran

    (@rilwis)

    Yes, that’s because there is no files uploaded. Your code is correct ??

    PS: A faster way is if ( !empty( $file_ids ) ) {

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: Invalid argument supplied for foreach() in fields/file.php’ is closed to new replies.