1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-24 00:53:10 +02:00

[bridges] fix invalid use of empty() for php < 5.5

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière
2016-09-01 22:53:01 +02:00
parent c642fca0d0
commit 948bd9ae31
7 changed files with 18 additions and 16 deletions

View File

@@ -18,11 +18,7 @@ class ZoneTelechargementBridge extends BridgeAbstract {
return $string;
}
$category = '/';
if (!empty($this->getInput('category')))
$category = '/'.$this->getInput('category').'/';
$url = $this->getURI().$category.'rss.xml';
$url = $this->getURI().$this->getInput('category').'rss.xml';
$html = $this->getSimpleHTMLDOM($url) or $this->returnServerError('Could not request Zone Telechargement: '.$url);
foreach($html->find('item') as $element) {