filter may not be null if '&filter=&' appears in request?

This commit is contained in:
Matt DeMoss 2018-01-02 16:16:44 -05:00
parent 8e926dfaf9
commit b26a621afd

View File

@ -166,7 +166,7 @@ class TwitterBridge extends BridgeAbstract {
switch($this->queriedContext) { switch($this->queriedContext) {
case 'By list': case 'By list':
// Check if filter applies to list (using raw content) // Check if filter applies to list (using raw content)
if(!is_null($this->getInput('filter'))) { if($this->getInput('filter')) {
if(stripos($tweet->find('p.js-tweet-text', 0)->plaintext, $this->getInput('filter')) === false) { if(stripos($tweet->find('p.js-tweet-text', 0)->plaintext, $this->getInput('filter')) === false) {
continue 2; // switch + for-loop! continue 2; // switch + for-loop!
} }