X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchPostgres.php;h=8ba49b60f9dcdabadcec361ddd220eb72d451693;hb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;hp=8da39dbd1bf11a9db6b76fb09bf2030b2d8163a9;hpb=a85d1b9d0cd7f02111d3a647d5b91e3b1f334563;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchPostgres.php b/includes/search/SearchPostgres.php index 8da39dbd1b..8ba49b60f9 100644 --- a/includes/search/SearchPostgres.php +++ b/includes/search/SearchPostgres.php @@ -136,8 +136,7 @@ class SearchPostgres extends SearchDatabase { # # TODO: Better output (example to catch: one 'two) die( "Sorry, that was not a valid search string. Please go back and try again" ); } - $top = $res->fetchRow(); - $top = $top[0]; + $top = $res->fetchRow()[0]; $this->searchTerms = []; if ( $top === "" ) { # # e.g. if only stopwords are used XXX return something better