allow null array to xmlmanager
This commit is contained in:
@@ -52,9 +52,8 @@ class PssApi extends Api {
|
||||
|
||||
if (count($pidList) < $this->maxPid) {
|
||||
$result = $this->sqlManager->sendPssQuery($pidList);
|
||||
if ($result) {
|
||||
return \utiliy\XmlManager::arrayToPssXml($result);
|
||||
}
|
||||
|
||||
return \utiliy\XmlManager::arrayToPssXml($result);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user