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 242bc08 commit c1409b5Copy full SHA for c1409b5
src/app/code/JetRails/Cloudflare/Model/Adminhtml/Api/Speed/MobileRedirect.php
@@ -52,7 +52,7 @@ public function getValue () {
52
$setting->result->domains = array_map ( function ( $domain ) {
53
preg_match ( "/^(.*)\..*?\..*$/m", $domain->name, $match );
54
return array (
55
- "value" => $match [ 1 ],
+ "value" => count ( $match ) > 1 ? $match [ 1 ] : "",
56
"label" => $domain->name . " (" . $domain->type . ")",
57
);
58
}, $domains->result );
0 commit comments