PHP error when trying to import invalid file types only.
jwalkerbg - February 27, 2009 - 08:33
| Project: | Image |
| Version: | 6.x-1.0-alpha4 |
| Component: | image_import |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Here is a error in the PHP code when trying to import images. The scenario to reproduce the error is:
- Put in /tmp/image image files with invalid extension (in my case its was .bmp).
- Select these files for import.
- Execute import.
The result is:
Image import
* warning: array_filter() [function.array-filter]: The first argument should be an array in /data/projects-sites/sites/all/modules/image/contrib/image_import/image_import.pages.inc on line 168.
* warning: Invalid argument supplied for foreach() in /data/projects-sites/sites/all/modules/image/contrib/image_import/image_import.pages.inc on line 168.
Import multiple image files and save them as image nodes. The files will be moved from their location into the image module's files directory. Searching for image files in /data/projects-sites/tmp/image.Ivan Cenov

#1