Improved array handling

pull/1/head
root 16 years ago
parent 58975ee44a
commit 6ef81b4fd0

@ -109,7 +109,7 @@
foreach($bits as $lang) foreach($bits as $lang)
{ {
$b = explode(";", $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)); $c = floatval(substr($b[1], 2));
else else
$c = 1; $c = 1;

Loading…
Cancel
Save