webERP Forum

Full Version: Error in array index name in InventoryValuation.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Line 211 of InventoryValuation.php reads

header("Content-disposition: attachment; filename=InventoryValuation_Categories_" . $_POST['FromCriteria'] . '-' . $_POST['Toriteria'] .'.csv');

It should read:

header("Content-disposition: attachment; filename=InventoryValuation_Categories_" . $_POST['FromCriteria'] . '-' . $_POST['ToCriteria'] .'.csv');

This sort of error would be noticed by the developer if they set error_reporting to be -1 in their config.php file while in development mode.

Thanks
Tim
Thanks
Normally an array indexing error happens when you either neglect to indicate an index, or you use an index that doesn't map to any data. If I asked for hole[14], for example, I'd get this kind of error.

Whenever you use an array, be very careful that any indices you use are inside the range of legitimate values for that array.
Reference URL's