Closed (fixed)
Project:
FileField
Version:
6.x-3.10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 17:09 UTC
Updated:
27 Apr 2013 at 18:00 UTC
Seeing this error: array_merge(): Argument #1 is not an array filefield_meta.module:78
Here's the diff:
@@ -73,7 +73,7 @@
* Implementation of FileField's hook_file_insert().
*/
function filefield_meta_file_insert(&$file) {
- if (!empty($file->fid)) {
+ if (!empty($file->fid) && is_array($file->data)) {
filefield_meta($file);
$record = array_merge($file->data, array('fid' => $file->fid));
drupal_write_record('filefield_meta', $record);
Comments
Comment #0.0
djbobbydrake commentedformatting
Comment #1
rgristroph commentedI tested this patch, and confirmed that the warning exists without it and went away with it.
--Rob
Comment #2
quicksketchThanks, I fixed this with a similar approach in #1809872: Error message with FileField Meta/Filedepot.
Comment #3.0
(not verified) commentedformatting