[Castorus] fix and code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-28 12:26:21 +02:00
parent 3d76ac5d17
commit 7710613e62

View file

@ -74,10 +74,7 @@ class CastorusBridge extends BridgeAbstract {
} }
public function collectData(){ public function collectData(){
if(isset($this->getInput('zip')))
$zip_filter = trim($this->getInput('zip')); $zip_filter = trim($this->getInput('zip'));
if(isset($this->getInput('city')))
$city_filter = trim($this->getInput('city')); $city_filter = trim($this->getInput('city'));
$html = $this->getSimpleHTMLDOM($this->uri); $html = $this->getSimpleHTMLDOM($this->uri);