Skip to content

Commit c1409b5

Browse files
author
Rafael Grigorian
committed
Fixed #54
1 parent 242bc08 commit c1409b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/code/JetRails/Cloudflare/Model/Adminhtml/Api/Speed/MobileRedirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function getValue () {
5252
$setting->result->domains = array_map ( function ( $domain ) {
5353
preg_match ( "/^(.*)\..*?\..*$/m", $domain->name, $match );
5454
return array (
55-
"value" => $match [ 1 ],
55+
"value" => count ( $match ) > 1 ? $match [ 1 ] : "",
5656
"label" => $domain->name . " (" . $domain->type . ")",
5757
);
5858
}, $domains->result );

0 commit comments

Comments
 (0)