Merge pull request #22152 from eileenmcnaughton/n1
[civicrm-core.git] / CRM / Utils / Verp.php
index 91bca0d282ef3cc6b56649ece298f7c6ef960803..133a8bde38a2a8ec336dad75efc7dc7d01a12d01 100644 (file)
@@ -64,8 +64,8 @@ class CRM_Utils_Verp {
     $sdomain = $match[2];
 
     preg_match('/(.+)\@([^\@]+)$/', $recipient, $match);
-    $rlocal = CRM_Utils_Array::value(1, $match);
-    $rdomain = CRM_Utils_Array::value(2, $match);
+    $rlocal = $match[1] ?? NULL;
+    $rdomain = $match[2] ?? NULL;
 
     foreach (self::$encodeMap as $char => $code) {
       $rlocal = preg_replace('/' . preg_quote($char) . '/i', "+$code", $rlocal);