diff --git a/salsa_api.inc b/salsa_api.inc index 30e4da8..82ea310 100644 --- a/salsa_api.inc +++ b/salsa_api.inc @@ -84,14 +84,23 @@ class SalsaAPI implements SalsaAPIInterface { $query[] = 'key=' . $key; } - $xml = simplexml_load_string($this->query('/delete', implode('&', $query))); - - if (!$xml) { - throw new SalsaQueryException("Unable to retrieve response."); - } - else { - return $xml; - } + $this->query('/delete', implode('&', $query)); + + /* @todo Implement parsing of query results. + * + * This is not possible right now because salsa API returns an invalid + * response for supporter, donation and probably for some other objects. + * In case of an invalid response, simplexml_load_string() function + * throws Exception. + * + * $xml = simplexml_load_string($result); + * if (!$xml) { + * throw new SalsaQueryException("Unable to retrieve response."); + * } + * else { + * return $xml; + * } + */ } else { throw new SalsaQueryException("The keys missing.");