From 90bf90d16778a7bc7be7bd35bc13e9a24b370861 Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Sun, 7 Apr 2019 21:51:48 +0200 Subject: [PATCH] [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 !== ". --- bridges/BingSearchBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/BingSearchBridge.php b/bridges/BingSearchBridge.php index ccfffdf9..eb8a5fc9 100644 --- a/bridges/BingSearchBridge.php +++ b/bridges/BingSearchBridge.php @@ -75,7 +75,7 @@ class BingSearchBridge extends BridgeAbstract public function getName() { 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')]; } else { $category = 'Unknown';