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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user