Skip to content

Commit

Permalink
Fix missing constant
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Oct 25, 2018
1 parent 60b4820 commit 0eab93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/UserAgentParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function parse_user_agent( $u_agent = null ) {
}
} elseif( $find('YaBrowser', $key, $browser) ) {
$browser = 'Yandex';
$version = $result[UAP_KEY_VERSION][$key];
$version = $result['version'][$key];
} elseif( $find(array( 'IEMobile', 'Edge', 'Midori', 'Vivaldi', 'SamsungBrowser', 'Valve Steam Tenfoot', 'Chrome', 'HeadlessChrome' ), $key, $browser) ) {
$version = $result['version'][$key];
} elseif( $rv_result && $find('Trident', $key) ) {
Expand Down

0 comments on commit 0eab93a

Please sign in to comment.