Merge "Move up devunt's name to Developers"
[lhc/web/wiklou.git] / includes / search / SearchPostgres.php
index 8da39db..8ba49b6 100644 (file)
@@ -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