} // END - if
} // END - foreach
+ // If we have no result, abort here
+ if (count($dummy) == 0) {
+ // Empty response from API
+ logDebugMessage(__FUNCTION__, __LINE__, 'Empy result from API received.');
+ return array();
+ } // END - if
+
// The result is now still raw, so we must split it up and trim spaces away
$responseLine = trim(implode("\n", $dummy));