Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in array index name in InventoryValuation.php
01-12-2014, 08:51 PM,
#1
Error in array index name in InventoryValuation.php
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
Reply
01-13-2014, 03:24 PM,
#2
RE: Error in array index name in InventoryValuation.php
Thanks
Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Reply
01-28-2014, 07:41 PM,
#3
RE: Error in array index name in InventoryValuation.php
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)