Closed (fixed)
Project:
Poormanscron
Version:
6.x-1.0
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2009 at 21:08 UTC
Updated:
11 Oct 2009 at 21:00 UTC
when no messages are set, line 43 sets $saved_messages to NULL
$saved_messages = drupal_set_message();
latter when iterating isset($saved_messages) yields true
and foreach() throws the error: Invalid argument supplied for foreach() line 84
line 83 & 84
if (isset($saved_messages)) {
foreach ($saved_messages as $type => $types_messages) {
Comments
Comment #1
arhak commentedseems it would be ok to use
if (empty($saved_messages)) {...}insteadComment #2
dave reidif $saved_messages = NULL, then isset($saved_messages) should return FALSE. Can you try the latest 6.x-1.x-dev and see if you get the same error?
Comment #3
arhak commentedcertainly I'm that wrong
phew, what a stumble
about testing it again.. well, do you know how difficult is to attempt running cron without yielding any message
just no right now, I'm XProgramming by now, my apologies
Comment #4
dave reidMarking as fixed.