Line 1448, there is a foreach loop that gets called and it expects $items to have something.
Since the favourites module is enabled and I don't have any favourites supplied, there's nothing for it to expand in the foreach loop which gives the foreach php error.
In this patch I just stuck an if ($items) wrapped around the foreach.
Don't know if it's good enough.
Let me know.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | favorite_nodes_empty_list_break.patch | 769 bytes | Anonymous (not verified) |
| user_multiple_profile_items.patch | 1.37 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedThought it was an issue with user.module but it's actually favorite_nodes .
Here's the fix for it.
Comment #2
wafaa commentedThanks. Committed to drupal HEAD and 4.7
Comment #3
Anonymous (not verified) commentedthanks.
Comment #4
(not verified) commented