[BingSearch] Make the bridge compatible with PHP 5.6 (#1084)
* [BingSearch] Make the bridge compatible with PHP 5.6 The use of isset() with an expression is not possible in PHP 5.6. I fixed it by replacing isset() with "null !== ".
This commit is contained in:
parent
6feda2220e
commit
90bf90d167
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class BingSearchBridge extends BridgeAbstract
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
if ($this->getInput('category')) {
|
if ($this->getInput('category')) {
|
||||||
if (isset(self::IMAGE_DISCOVER_CATEGORIES[$this->getInput('categories')])) {
|
if (self::IMAGE_DISCOVER_CATEGORIES[$this->getInput('categories')] !== null) {
|
||||||
$category = self::IMAGE_DISCOVER_CATEGORIES[$this->getInput('categories')];
|
$category = self::IMAGE_DISCOVER_CATEGORIES[$this->getInput('categories')];
|
||||||
} else {
|
} else {
|
||||||
$category = 'Unknown';
|
$category = 'Unknown';
|
||||||
|
|
Loading…
Add table
Reference in a new issue