Closed (fixed)
Project:
MySite
Version:
5.x-2.0-beta2
Component:
- Layout plugin
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 May 2007 at 13:15 UTC
Updated:
17 May 2007 at 15:08 UTC
Hi,
I'm using Drupal 5.1.
I'av installed the laste Beta version of the module : mysite-5.x-2.0-beta2, but i'va an error in the view page.
this is the error : warning: Invalid argument supplied for foreach() in ......\modules\mysite\plugins\layouts\default.php on line 41.
Please can you help me:)
Comments
Comment #1
agentrickardThis was caused by passing an empty array if the user had no content in their collection.
The fix is to check the incoming data array before calling the layout file.
Lines 604+ of mysite.module change from:
to
This is patched and RTBC.
Comment #2
agentrickardNot quite fixed. Investigating.
Comment #3
agentrickardThe was a logic error in mysite_content_add() as well.
Change line 1713 from:
to:
RTBC.
Comment #4
agentrickardCommitted to HEAD and rolled into beta3