mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 13:50:23 +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,8 +18,9 @@ class CryptomeBridge extends BridgeAbstract{
|
||||
public function collectData(){
|
||||
$html = $this->getSimpleHTMLDOM($this->uri)
|
||||
or $this->returnServerError('Could not request Cryptome.');
|
||||
if (!empty($this->getInput('n'))) { /* number of documents */
|
||||
$num = min($this->getInput('n'), 20);
|
||||
$number=$this->getInput('n');
|
||||
if (!empty($number)) { /* number of documents */
|
||||
$num = min($number, 20);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user