Closed (fixed)
Project:
Actions
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2006 at 02:50 UTC
Updated:
22 Sep 2006 at 21:00 UTC
If you go to the above URL, an error is printed about an invalid foreach in action.module line 190. I noted the params column in my actions table is empty, hence the foreach in question is getting an empty string. Accordingly, I made the following change, and the error went away.
***************
*** 187,194 ****
$function = $data->func;
$edit['action'] = md5($data->func);
$params = unserialize($data->params);
! foreach ($params as $name => $val) {
! $edit[$name] = $val;
}
}
else {
--- 187,196 ----
$function = $data->func;
$edit['action'] = md5($data->func);
$params = unserialize($data->params);
! if ($params) {
! foreach ($params as $name => $val) {
! $edit[$name] = $val;
! }
}
}
else {
Comments
Comment #1
jvandyk commentedFixed. Thanks.
Comment #2
(not verified) commented