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

njivy’s picture

Fixed. 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?

Anonymous’s picture