diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index f1d92e988..6f02d6bac 100755 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -4456,11 +4456,8 @@ function get_mobile_data( $pv_browser_user_agent ) // finally get the correct version number $known = array('Version', $ub, 'other'); - $pattern = '#(?' . join('|', $known) . - ')[/ ]+(?[0-9.|a-zA-Z.]*)#'; - if (!preg_match_all($pattern, $u_agent, $matches)) { - // we have no matching number just continue - } + $pattern = '#(?P' . join('|', $known) . ')[/ ]+(?P[0-9.|a-zA-Z.]*)#'; + @preg_match_all($pattern, $u_agent, $matches); // see how many we have $i = count($matches['browser']);