From fa1c12da8f05089b2f38e9d8455cdf3d5e698092 Mon Sep 17 00:00:00 2001 From: Caspar Green Date: Fri, 31 Mar 2017 16:42:07 -0400 Subject: [PATCH] Update Emma.php --- src/Emma.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Emma.php b/src/Emma.php index c51af81..7e158a4 100644 --- a/src/Emma.php +++ b/src/Emma.php @@ -957,7 +957,11 @@ function webhooksRemoveAll() { protected function get($path, $params = array()) { $this->_params = array_merge($params, $this->_params); $url = $this->_constructUrl($path); - return $this->_request($url); + $req = $this->_request($url); + foreach($params as $key => $value) { + unset($this->_params[$key]); + } + return $req; } /**