diff --git a/libraries/whichbrowser.php b/libraries/whichbrowser.php index a689b4d..e100e87 100644 --- a/libraries/whichbrowser.php +++ b/libraries/whichbrowser.php @@ -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; @@ -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; @@ -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':