When using browser_is() with a browser version 1.x,
2.x, etc. it works fine, but with a browser version 0.x
it always returns false.
For example:
Checking if the client is using Firefox with a minimum
version of 0.9 we use browser_is('FX0.9Up') but it
returns false even though the client is using version
0.9.3.
To fix this problem, go to the _perform_browser_search
function and change the following 2 lines:
$majv = $search['maj_ver'] ?
$this->_browser_info['maj_ver'] : '';
$minv = $search['min_ver'] ?
$this->_browser_info['min_ver'] : '';
Change them to:
$majv = $search['maj_ver'] != '' ?
$this->_browser_info['maj_ver'] : '';
$minv = $search['min_ver'] != '' ?
$this->_browser_info['min_ver'] : '';
This way, when $search['maj_ver'] is 0, $majv will
correctly take the value of
$this->_browser_info['maj_ver'].