diff --git a/webht/third_party/paypal/models/paypal_model.php b/webht/third_party/paypal/models/paypal_model.php index 0f8697f5..0c53cc56 100644 --- a/webht/third_party/paypal/models/paypal_model.php +++ b/webht/third_party/paypal/models/paypal_model.php @@ -607,8 +607,8 @@ class Paypal_model extends CI_Model { { $sql = "SELECT top 1 * from BIZ_ConfirmLineInfo WHERE 1=1 "; - $tp_order ? $sql.=" and COLI_PriceMemo=$tp_order " : ""; - $real_orderid ? $sql.=" and COLI_ID=$real_orderid " : ""; + $tp_order ? $sql.=" and COLI_PriceMemo='$tp_order' " : ""; + $real_orderid ? $sql.=" and COLI_ID='$real_orderid' " : ""; return $this->HT->query($sql)->row(); }