viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Fix notice in Web Scrapers, a=chris

Chris Pollett [2019-11-23 18:Nov:rd]
Fix notice in Web Scrapers, a=chris
Filename
src/controllers/components/CrawlComponent.php
diff --git a/src/controllers/components/CrawlComponent.php b/src/controllers/components/CrawlComponent.php
index 2bd525c1a..348e1cad8 100644
--- a/src/controllers/components/CrawlComponent.php
+++ b/src/controllers/components/CrawlComponent.php
@@ -2145,7 +2145,7 @@ class CrawlComponent extends Component implements CrawlConstants
                     break;
             }
         }
-        if ($search_array == [] || !empty($default_search)) {
+        if (empty($search_array)] || !empty($default_search)) {
             if (!empty($_SESSION['LAST_SEARCH']['scrapers'])) {
                 if (!empty($_REQUEST['arg']) && $_REQUEST['arg'] == 'search') {
                     $search_array =
@@ -2158,7 +2158,7 @@ class CrawlComponent extends Component implements CrawlConstants
                         $_SESSION['LAST_SEARCH']['scrapers']['PAGING'];
                 }
             }
-            if ($search_array == []) {
+            if (empty($search_array)) {
                 $search_array[] = ["name", "", "", "ASC"];
             }
         }
ViewGit