Skip to content

Commit b94b209

Browse files
author
Rafael Grigorian
committed
Fixed #142
1 parent 3fbb0b7 commit b94b209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getValue () {
3838
$setting->result->domains = array_map ( function ( $domain ) {
3939
preg_match ( "/^(.*)\..*?\..*$/m", $domain->name, $match );
4040
return array (
41-
"value" => $match [ 1 ],
41+
"value" => count ( $match ) > 1 ? $match [ 1 ] : "",
4242
"label" => $domain->name . " (" . $domain->type . ")",
4343
);
4444
}, $domains->result );

0 commit comments

Comments
 (0)