Download & Extend

PHP warnings on array merge on mongodb_field_storage

Project:Mongodb
Version:7.x-1.x-dev
Component:Field storage
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs review

Issue Summary

I get following php warnings when using entityfieldquery.

Warning: array_merge(): Argument #2 is not an array in mongodb_field_storage_query() (line 367 of /siteroot/sites/all/modules/contrib/mongodb/mongodb_field_storage/mongodb_field_storage.module).

EntityFieldQuery in question has entity, property and fieldconditions and fieldorderby statements. Since php 5.0 array_merge has accepted arrays only.

Comments

#1

Status:active» needs review

Following typecast patch fixes the issue for me. It may be better to check why it's not array on first place.

AttachmentSizeStatusTest resultOperations
ArrayMergeWarning-1898664-1.patch949 bytesTest request sentNoneView details
nobody click here