X-Git-Url: https://git.stricted.de/?p=GitHub%2FStricted%2Fspeedport-hybrid-php-api.git;a=blobdiff_plain;f=SpeedportHybrid.class.php;h=c135643cd5163d77b29c03fef5f52a4a9e0d8315;hp=06030a604a17300de2ad28ae981503ee59dff703;hb=5b40b9c92d17334a29473c1c10558344659995d0;hpb=8d0ef90a01ef074a0ab00e58d534195763cb09ec diff --git a/SpeedportHybrid.class.php b/SpeedportHybrid.class.php index 06030a6..c135643 100644 --- a/SpeedportHybrid.class.php +++ b/SpeedportHybrid.class.php @@ -121,6 +121,7 @@ class SpeedportHybrid { if (!empty($fields)) { curl_setopt($ch, CURLOPT_POST, true); + if (is_array($fields)) { curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($fields)); }