From: robert Date: Sat, 11 Mar 2006 14:43:27 +0000 (+0000) Subject: some small fixes for notices X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=437e1c9114e07ddabd7fb59fb5d793488fa696cd some small fixes for notices --- diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index b1e815a..2f7569a 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -454,7 +454,7 @@ class userAgent { foreach ($accLcomp as $lcomp) { if (strlen($lcomp)) { $ldef = explode(';', $lcomp); - $accLang[$ldef[0]] = (float)((strpos($ldef[1],'q=')===0)?substr($ldef[1],2):1); + $accLang[$ldef[0]] = (float)((strpos(@$ldef[1],'q=')===0)?substr($ldef[1],2):1); } } $this->uadata['accept-languages'] = $accLang;