From 7952ab9258e560f19c5db4ee91349e9c88d23613 Mon Sep 17 00:00:00 2001
From: lebozec <nicolas.lebozec@xelians.fr>
Date: Tue, 14 Feb 2023 12:04:53 +0100
Subject: [PATCH] FIX #19031 TIME 0:15 fix deprecated for str_replace

---
 src/app/search/controllers/SearchController.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/app/search/controllers/SearchController.php b/src/app/search/controllers/SearchController.php
index ce0e47e549..f55e3a041f 100755
--- a/src/app/search/controllers/SearchController.php
+++ b/src/app/search/controllers/SearchController.php
@@ -187,8 +187,7 @@ class SearchController
                 if (empty($value['status'])) {
                     $currentFound = true;
                 }
-
-                $state = str_replace(['END'], ['REF'], $value['status']);
+                $state = str_replace(['END'], ['REF'], array($value['status']));
                 if (empty($value['status'])) {
                     $state = 'PROG';
                 }
-- 
GitLab