Skip to content

Commit 2941988

Browse files
author
Tibor Barna
committed
Fixed undefined offset notices in parter
1 parent d5f24a6 commit 2941988

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ protected function parseFragments($useragent)
466466
}
467467

468468
if ($r["regstring2"]) {
469-
$fnext=$fr[$fi+1];
469+
$fnext=@$fr[$fi+1];
470470
if (@preg_match($r["regstring2"],$fnext,$vys2)) {
471471
$i=1;
472472
if(count($vys2) > 1) {
@@ -478,7 +478,7 @@ protected function parseFragments($useragent)
478478
}
479479
}
480480
if ($r["regstring3"]) {
481-
$fnext2=$fr[$fi+2];
481+
$fnext2=@$fr[$fi+2];
482482
if (@preg_match($r["regstring3"],$fnext2,$vys3)) {
483483
$i=1;
484484
if(count($vys3) > 1) {
@@ -491,7 +491,7 @@ protected function parseFragments($useragent)
491491
}
492492

493493
if ($r["regstring4"]) {
494-
$fnext3=$fr[$fi+3];
494+
$fnext3=@$fr[$fi+3];
495495
if (@preg_match($r["regstring4"],$fnext3,$vys4)) {
496496
$i=1;
497497
if(count($vys4) > 1) {

0 commit comments

Comments
 (0)