Closed (fixed)
Project:
Automember
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2004 at 18:00 UTC
Updated:
12 Dec 2004 at 14:15 UTC
I kept getting errors when I was clicking on the "Update" tab in the Automember settings page. The error I got was in regards to the an invalid argument being passed to the foreach statement on line 537. Apparently the $in_target was not properly initialized before it was being used. Since the first time $in_target appears in the code, it is inside an IF statement.
I simply added $in_target = array(); to the list of common variables being Initialized on line 374 and this fixed the problem.
On a side note, I ran the code through Zend Development Environment and it complains about a lot of variables never being used. Not sure if you are aware of this, just thought you'd like to know.
Comments
Comment #1
njivy commentedFixed. Thanks for the tip.
I do not use the Zend Development Environment and get no warnings for unused variables. If this is a serious problem, would you be willing to submit a patch?
Comment #2
(not verified) commented