Skip to content

Commit

Permalink
Fixed undefined offset notices in parter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibor Barna committed Feb 17, 2016
1 parent d5f24a6 commit 2941988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ protected function parseFragments($useragent)
}

if ($r["regstring2"]) {
$fnext=$fr[$fi+1];
$fnext=@$fr[$fi+1];
if (@preg_match($r["regstring2"],$fnext,$vys2)) {
$i=1;
if(count($vys2) > 1) {
Expand All @@ -478,7 +478,7 @@ protected function parseFragments($useragent)
}
}
if ($r["regstring3"]) {
$fnext2=$fr[$fi+2];
$fnext2=@$fr[$fi+2];
if (@preg_match($r["regstring3"],$fnext2,$vys3)) {
$i=1;
if(count($vys3) > 1) {
Expand All @@ -491,7 +491,7 @@ protected function parseFragments($useragent)
}

if ($r["regstring4"]) {
$fnext3=$fr[$fi+3];
$fnext3=@$fr[$fi+3];
if (@preg_match($r["regstring4"],$fnext3,$vys4)) {
$i=1;
if(count($vys4) > 1) {
Expand Down

0 comments on commit 2941988

Please sign in to comment.