Closed (fixed)
Project:
Organic Groups
Version:
4.6.x-1.x-dev
Component:
og.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Feb 2006 at 01:47 UTC
Updated:
6 Apr 2006 at 22:15 UTC
hi guys!
was starting to play with custom templates for diff. node types. for og templates i tried to use page.tpl.php, supplied with module. but when i tried to use it following error came up :
warning: Invalid argument supplied for foreach() in /home/mugu/public_html/includes/common.inc on line 1331.
i reported it here http://drupal.org/node/15467
i played around a little bit and saw that there is an error on following line:
$og_links[] = l($node->og_groups_names[$ind], 'node/', $node->og_groups[$ind]);
alast to argument should be concatenated with dot, and not seperated by comma.
$og_links[] = l($node->og_groups_names[$ind], 'node/'.$node->og_groups[$ind]);
after that everything works nice
:)
Comments
Comment #1
moshe weitzman commentedhuh - those two lines are the same, no? also, you mean node.tpl.php
pleae reopen with more detail.
Comment #2
morbus iffMoshe: one is a concat, the other isn't.
Comment #3
moshe weitzman commentedthanks morbus ... apparently i can't read today.
Comment #4
(not verified) commented