We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbb0b7 commit b94b209Copy full SHA for b94b209
src/app/code/community/JetRails/Cloudflare/Model/Adminhtml/Api/Speed/MobileRedirect.php
@@ -38,7 +38,7 @@ public function getValue () {
38
$setting->result->domains = array_map ( function ( $domain ) {
39
preg_match ( "/^(.*)\..*?\..*$/m", $domain->name, $match );
40
return array (
41
- "value" => $match [ 1 ],
+ "value" => count ( $match ) > 1 ? $match [ 1 ] : "",
42
"label" => $domain->name . " (" . $domain->type . ")",
43
);
44
}, $domains->result );
0 commit comments