Merge pull request #16879 from civicrm/5.24
[civicrm-core.git] / setup / src / Setup / DrupalUtil.php
index 5e8090a4b4618488f70344526c35723437d01b8e..0f5ab95205b02ca0fc6893cb2e4f6b116821a59b 100644 (file)
@@ -47,7 +47,7 @@ class DrupalUtil {
     preg_quote($modules, DIRECTORY_SEPARATOR) . "/",
     $_SERVER['SCRIPT_FILENAME'], $matches
     );
-    $siteDir = isset($matches[1]) ? $matches[1] : 'default';
+    $siteDir = $matches[1] ?? 'default';
 
     if (strtolower($siteDir) == 'all') {
     // For this case - use drupal's way of finding out multi-site directory