@@ -1199,7 +1199,9 @@ protected function _callApi_curl($httpmethod, $method, $params = array(), $multi
1199
1199
$ url = $ this ->_getEndpoint ($ method );
1200
1200
$ request_headers = array ();
1201
1201
if ($ httpmethod === 'GET ' ) {
1202
- if (json_encode ($ params ) !== '{} ' ) {
1202
+ if (json_encode ($ params ) !== '{} '
1203
+ && json_encode ($ params ) !== '[] '
1204
+ ) {
1203
1205
$ url .= '? ' . http_build_query ($ params );
1204
1206
}
1205
1207
if (! $ app_only_auth ) {
@@ -1295,7 +1297,6 @@ protected function _callApi_curl($httpmethod, $method, $params = array(), $multi
1295
1297
1296
1298
protected function _callApi_no_curl ($ httpmethod , $ method , $ params = array (), $ multipart = false , $ app_only_auth = false , $ internal = false )
1297
1299
{
1298
-
1299
1300
if ($ internal ) {
1300
1301
$ params ['adc ' ] = 'phone ' ;
1301
1302
$ params ['application_id ' ] = 333903271 ;
@@ -1306,7 +1307,9 @@ protected function _callApi_no_curl($httpmethod, $method, $params = array(), $mu
1306
1307
$ hostname = parse_url ($ url , PHP_URL_HOST );
1307
1308
$ request_headers = array ();
1308
1309
if ($ httpmethod === 'GET ' ) {
1309
- if (json_encode ($ params ) !== '{} ' ) {
1310
+ if (json_encode ($ params ) !== '{} '
1311
+ && json_encode ($ params ) !== '[] '
1312
+ ) {
1310
1313
$ url .= '? ' . http_build_query ($ params );
1311
1314
}
1312
1315
if (! $ app_only_auth ) {
0 commit comments