Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4eda53a authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

pregmatch function edited

parent 4f892c9d
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -93,8 +93,12 @@ class InvitationMiddleware extends Middleware
	}
	private function extract_emails_from($string)
	{
		preg_match_all("/mailto:(.*)/i", $string, $matches);
		return substr($matches[0][0], 7);
		$matches = [];
		$found = preg_match("/mailto:(.*)/i", $string, $matches);
		if ($found === 1) {
			return $matches[1];
		}
		return "";
	}
	public function afterController(
		$controller,