webERP Forum
Error in array index name in InventoryValuation.php - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (/forumdisplay.php?fid=8)
+--- Thread: Error in array index name in InventoryValuation.php (/showthread.php?tid=2024)



Error in array index name in InventoryValuation.php - Forums - 01-12-2014 08:51 PM

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


RE: Error in array index name in InventoryValuation.php - phil - 01-13-2014 03:24 PM

Thanks


RE: Error in array index name in InventoryValuation.php - batool100 - 01-28-2014 07:41 PM

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.