Skip to content

Commit

Permalink
fixing browscap wrong key
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaDafinser committed Nov 12, 2015
1 parent 8c7a448 commit 2cb2ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/BrowscapPhp.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function parse($userAgent, array $headers = [])
$bot = $result->getBot();
$bot->setIsBot(true);

if (isset($resultRaw->version) && $this->isRealResult($resultRaw->version) === true) {
if (isset($resultRaw->browser) && $this->isRealResult($resultRaw->browser) === true) {
$bot->setName($resultRaw->browser);
}

Expand Down

0 comments on commit 2cb2ad5

Please sign in to comment.