From 6ef81b4fd0a969668fb5bf6fc39a541fcacc7fd1 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Aug 2008 23:09:27 +0000 Subject: [PATCH] Improved array handling --- includes/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/general.php b/includes/general.php index 10f55e6..92ce4d9 100644 --- a/includes/general.php +++ b/includes/general.php @@ -109,7 +109,7 @@ foreach($bits as $lang) { $b = explode(";", $lang); - if(substr($b[1], 0, 2) == "q=") + if(count($b)>1 && substr($b[1], 0, 2) == "q=") $c = floatval(substr($b[1], 2)); else $c = 1;