Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
Built WhichBrowser from commit c62eb80 on WhichBrowser/WhichBrowser o…
Browse files Browse the repository at this point in the history
…n branch dev
  • Loading branch information
NielsLeenheer committed Nov 11, 2015
1 parent 70b0c30 commit a10d5bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/whichbrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4498,7 +4498,7 @@ function analyseUserAgent($ua) {
$this->browser->version = new Version(array('value' => $match[1]));

if (isset($this->os->name) && $this->os->name == 'Android') {
switch (implode('.', array_splice((explode('.', $match[1])), 0, 3))) {
switch (implode('.', array_slice(explode('.', $match[1]), 0, 3))) {
case '16.0.912':
$this->browser->channel = 'Beta';
break;
Expand Down Expand Up @@ -4531,7 +4531,7 @@ function analyseUserAgent($ua) {
}

/* Webview for Android 4.4 and higher */
if (implode('.', array_splice((explode('.', $match[1])), 1, 2)) == '0.0' && preg_match('/Version\//u', $ua)) {
if (implode('.', array_slice(explode('.', $match[1]), 1, 2)) == '0.0' && preg_match('/Version\//u', $ua)) {
$this->browser->stock = true;
$this->browser->name = null;
$this->browser->version = null;
Expand Down Expand Up @@ -4617,7 +4617,7 @@ function analyseUserAgent($ua) {
}

else {
switch (implode('.', array_splice((explode('.', $match[1])), 0, 3))) {
switch (implode('.', array_slice(explode('.', $match[1]), 0, 3))) {
case '0.2.149':
case '0.3.154':
case '0.4.154':
Expand Down

0 comments on commit a10d5bc

Please sign in to comment.