Merged changes from mai trunk up to 2.3.1
[fa-stable.git] / purchasing / includes / ui / po_ui.inc
index 5f713a481791f8d3e7eb0b8612489eb3e6639861..d5ae6fc1e3b6f50ef3fe83a0c700bb15b5aa13d9 100644 (file)
@@ -201,7 +201,7 @@ function display_po_header(&$order)
        /*If this is the first time the form loaded set up defaults */
 
         //$_POST['StkLocation'] = $_SESSION['UserStockLocation'];
-        $sql = "SELECT delivery_address, phone FROM ".TB_PREF."locations WHERE loc_code='" . db_escape($_POST['StkLocation']) . "'";
+        $sql = "SELECT delivery_address, phone FROM ".TB_PREF."locations WHERE loc_code=".db_escape($_POST['StkLocation']);
         $result = db_query($sql,"could not get location info");
 
         if (db_num_rows($result) == 1)