The array passed to views_embed_views causes several notices:

    Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2171 of /var/www/lv/htdocs/includes/database/database.inc).
    Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /var/www/lv/htdocs/includes/unicode.inc).
    Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /var/www/lv/htdocs/includes/unicode.inc).
    Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /var/www/lv/htdocs/includes/unicode.inc).

As views_embed_views signature is ..., arg1, arg2, arg3, argN, the nid can be passed as a scalar.

CommentFileSizeAuthor
#2 dvg_live_blog_notices.patch700 bytesheine

Comments

Heine created an issue. See original summary.

heine’s picture

StatusFileSize
new700 bytes

Apologies, forgot the patch.

askibinski’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, all the parameters after the second are indeed arguments for the view itself.

  • askibinski committed fbd18f5 on 7.x-1.x
    Issue #2764273 by Heine: Notices in dvg_ct_live_blog_page_alter()
    
askibinski’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Committed, thanks!