allow null array to xmlmanager

This commit is contained in:
stubbfel
2013-06-26 14:16:32 +02:00
parent 34c0549ac8
commit c03db748bc
2 changed files with 3 additions and 7 deletions

View File

@@ -154,10 +154,7 @@ class SpsApi extends Api {
$queryArgs[SpsApi::$keyPoly] = $this->createPolygon($latitude, $longitude, $this->range);
$result = $this->sqlManager->sendSpsCoordinateQuery($queryArgs);
if ($result) {
return \utiliy\XmlManager::arrayToSpsXml($result);
}
return null;
return \utiliy\XmlManager::arrayToSpsXml($result);
}
/**