From: <te...@us...> - 2016-02-20 08:27:31
|
Revision: 7462 http://sourceforge.net/p/web-erp/reponame/7462 Author: tehonu Date: 2016-02-20 08:27:29 +0000 (Sat, 20 Feb 2016) Log Message: ----------- Avoid error in error_log PHP Strict Standards: Only variables should be passed by reference in weberp/StockTransfers.php Modified Paths: -------------- trunk/StockTransfers.php Modified: trunk/StockTransfers.php =================================================================== --- trunk/StockTransfers.php 2016-02-20 08:04:49 UTC (rev 7461) +++ trunk/StockTransfers.php 2016-02-20 08:27:29 UTC (rev 7462) @@ -230,7 +230,8 @@ WHERE stockmaster.stockid ='" . $_SESSION['Transfer']->TransferItem[0]->StockID . "'"; $ErrMsg = _('The standard cost of the item cannot be retrieved because'); $DbgMsg = _('The SQL that failed was'); - $myrow = DB_fetch_array(DB_query($SQLstandardcost,$ErrMsg,$DbgMsg)); + $ResultStandardCost = DB_query($SQLstandardcost,$ErrMsg,$DbgMsg); + $myrow = DB_fetch_array($ResultStandardCost); $StandardCost = $myrow['standardcost'];// QUESTION: Standard cost for: Assembly (value="A") and Manufactured (value="M") items ? // Insert record: $SQL = "INSERT INTO gltrans ( @@ -385,7 +386,8 @@ WHERE stockmaster.stockid ='" . $_SESSION['Transfer']->TransferItem[0]->StockID . "'"; $ErrMsg = _('The standard cost of the item cannot be retrieved because'); $DbgMsg = _('The SQL that failed was'); - $myrow = DB_fetch_array(DB_query($SQLstandardcost,$ErrMsg,$DbgMsg)); + $ResultStandardCost = DB_query($SQLstandardcost,$ErrMsg,$DbgMsg); + $myrow = DB_fetch_array($ResultStandardCost); $StandardCost = $myrow['standardcost'];// QUESTION: Standard cost for: Assembly (value="A") and Manufactured (value="M") items ? // Insert record: $SQL = "INSERT INTO gltrans ( |