| Back to top |
Sometimes, I don't know exactly in which conditions, whether it's browser or operating system related.
The errors I get are stated bellow: [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 9 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 10 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 11 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 12 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 13 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 14 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 15 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 16 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 17 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 18 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 [21-Jul-2008 14:39:34] PHP Notice: Undefined offset: 19 in /x/xx/xxx/browser_detection_php_ar-1.txt on line 446 I did some (superficial) debugging and changed four lines of code and got rid of the problem while maintaining the script functionality. The lines I changed are: 550: $i_count1 = count($s_os); 551: for ($j = 0; $j < $i_count1; $j++) 565: $i_count2 = count($s_os); even though it could also be 1 566: for ($j = 0; $j < $i_count2; $j++) even though it could also be 1 I didn't do a in depth investigation but I got rid of the problem. :: Code :: |
|||||
|
All times are GMT - 8 Hours
|
||||||
Contact Us
Hosting: Pair Networks: 0.044
Forum Software © 2001–2009 phpBB
techForum Style © 2003–2009 techpatterns.com
info
Hosting: Pair Networks: 0.044
Forum Software © 2001–2009 phpBB
techForum Style © 2003–2009 techpatterns.com
info