Closed (fixed)
Project:
Node Reference Views Select
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2009 at 15:31 UTC
Updated:
24 Mar 2009 at 20:06 UTC
Trying to install the module I get:
Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /.../public_html/sites/all/modules/nodereference_views_select/nodereference_views_select.views.inc on line 111
Around that line, the code looks like:
function _nodereference_views_select_views_items($view, $nodes)
{
foreach ($nodes as &$node)
{
$node = node_load($node->nid);
}
return $nodes;
}
Best regards
Comments
Comment #1
jbomb commentedWhat version of PHP are you running? the following foreach syntax is only supported in PHP 5
you might try changing:
to :
Comment #2
jdm65b commentedThat's right. My hosting company uses PHP 4.4.7 and your suggestion is correct.
Thank you very much.
Comment #3
jdm65b commented