GitInfo: Don't try shelling out if it's disabled
[lhc/web/wiklou.git] / includes / PrefixSearch.php
index 62ee5c6..5127158 100644 (file)
@@ -211,7 +211,7 @@ abstract class PrefixSearch {
 
                $searchParts = explode( '/', $search, 2 );
                $searchKey = $searchParts[0];
-               $subpageSearch = isset( $searchParts[1] ) ? $searchParts[1] : null;
+               $subpageSearch = $searchParts[1] ?? null;
 
                // Handle subpage search separately.
                if ( $subpageSearch !== null ) {