From b0297af32f008676165db867aeccf8bcf666dc87 Mon Sep 17 00:00:00 2001 From: lyt Date: Wed, 27 Sep 2017 10:31:24 +0800 Subject: [PATCH] ipaylinks warning refer --- webht/third_party/pay/controllers/iPayLinksService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webht/third_party/pay/controllers/iPayLinksService.php b/webht/third_party/pay/controllers/iPayLinksService.php index 559ded7d..9a36a765 100644 --- a/webht/third_party/pay/controllers/iPayLinksService.php +++ b/webht/third_party/pay/controllers/iPayLinksService.php @@ -687,7 +687,7 @@ class IPayLinksService extends CI_Controller $ret->data = $respObject = (Object) $resp; $ref = ""; } else { - $ref = $_SERVER['HTTP_REFERER']; + $ref = $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : NULL; $r = iconv("UTF-8", "UTF-8//IGNORE", $resp); $ret->data = $respObject = @ simplexml_load_string($resp); // test