Topic: Bug (?) in report generator module
Hi all,
I successfully installed the module. I got the problem when I tried to create new report. In the 'Definition of a new Item of the report' page, inserting some values and clicking 'Store Item' button didn't give me any feedback. Even setting $go_debug = 1 or 2 also didn't give me any clues.
So I tried to trace the code. I found that the problem was on this line of repgen_strings.php file:
while (is_array($_POST) && list($key, $val) = each($_POST))
The list() only works on numerical arrays (I just check the PHP manual), and $_POST doesn't have numerical indices.
So I replaced that line of code with this:
if(is_array($_POST))
{
foreach($_POST as $key => $value)
Of course with additional closing '}' on the right place.
Now I can store items on the new report.
Hope this helps somebody here.
Regards,
Albert