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 8efcfec commit 39eb208Copy full SHA for 39eb208
classes/Meta.php
@@ -176,7 +176,7 @@ public function twitterSite()
176
// tries to match all twitter urls, and extract the username
177
$matches = [];
178
preg_match('/^(https?:\/\/)?(www\.)?twitter\.com\/(#!\/)?@?(?<name>[^\/\?]*)$/', $accs->twitter()->value(), $matches);
179
- $username = $matches['name'];
+ if (isset($matches['name'])) $username = $matches['name'];
180
}
181
182
return new Field($this->page, 'twitter', $username);
0 commit comments