I'm getting the error

Notice: Array to string conversion in biblio_token_info() (line 8 of ..../biblio/biblio.tokens.inc).

I think there was some mention of a similar error (different function) being fixed in the -dev version but I am using 7.x-1.0-dev. (I have strict warnings enabled.)

CommentFileSizeAuthor
#1 1815032-1.patch536 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new536 bytes

array_diff() is not recursive and $schema['fields'] contains nested arrays. Solution is adding array_keys():
$fields = array_diff(array_keys($schema['fields']), array('nid', 'vid', 'biblio_format'));

Patch attached.

rjerome’s picture

Status: Needs review » Fixed

Thanks for the patch, while it removed the error, it didn't do what I intended.

I've pushed a fix that does both.

http://drupalcode.org/project/biblio.git/commit/1febb8e

Ron.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.