From: <ex...@us...> - 2015-03-08 04:43:31
|
Revision: 7207 http://sourceforge.net/p/web-erp/reponame/7207 Author: exsonqu Date: 2015-03-08 04:43:26 +0000 (Sun, 08 Mar 2015) Log Message: ----------- 08/03/15 Exson: Fixed undefined index noise in PO_Items.php. Modified Paths: -------------- trunk/PO_Items.php Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2015-03-07 17:44:35 UTC (rev 7206) +++ trunk/PO_Items.php 2015-03-08 04:43:26 UTC (rev 7207) @@ -1023,7 +1023,7 @@ ORDER BY stockmaster.stockid "; } } else { // for a specific stock category - if ($_POST['SupplierItemsOnly']=='on'){ + if (isset($_POST['SupplierItemsOnly']) AND $_POST['SupplierItemsOnly']=='on'){ $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units @@ -1059,6 +1059,8 @@ $SQLCount = substr($sql,strpos($sql, "FROM")); $SQLCount = substr($SQLCount,0, strpos($SQLCount, "ORDER")); $SQLCount = 'SELECT COUNT(*) '.$SQLCount; + $ErrMsg = _('Failed to retrieve result count'); + $DbgMsg = _('The SQL failed is '); $SearchResult = DB_query($SQLCount,$ErrMsg,$DbgMsg); $myrow=DB_fetch_array($SearchResult); DB_free_result($SearchResult); |