Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in array index name in InventoryValuation.php
01-12-2014, 08:51 PM
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
01-13-2014, 03:24 PM
Post: #2
RE: Error in array index name in InventoryValuation.php
Thanks

Phil Daintree
webERP Admin
Logic Works Ltd
http://www.logicworks.co.nz
Visit this user's website Find all posts by this user
Quote this message in a reply
01-28-2014, 07:41 PM
Post: #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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)