diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-16 15:23:00 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-16 15:23:00 +0100 |
commit | bfd521afccb7e62e892c3ef21b710add14330713 (patch) | |
tree | 826348107733dd891966559ccd7cd15e63952ce1 | |
parent | e89fdef6064741bf6d26c11b782c7fecf994caf3 (diff) | |
download | istreamdev-bfd521afccb7e62e892c3ef21b710add14330713.tar.gz istreamdev-bfd521afccb7e62e892c3ef21b710add14330713.tar.bz2 |
Fixed category search
-rwxr-xr-x | bin/vdr.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/vdr.php b/bin/vdr.php index 5aa3c65..88e3a11 100755 --- a/bin/vdr.php +++ b/bin/vdr.php @@ -122,7 +122,7 @@ function vdrgetcategories() return $catlist; } -function vdrgetchannels($category = "", $now) +function vdrgetchannels($category, $now) { global $vdrchannels; @@ -141,6 +141,8 @@ function vdrgetchannels($category = "", $now) return $chanlist; } + $cat_found = 0; + while ($line = fgets($fp, 1024)) { if (!$cat_found) @@ -156,8 +158,8 @@ function vdrgetchannels($category = "", $now) $cat = substr($cat, strlen($cat[0])+1); } - if ($cat = $category) - $cat_found = TRUE; + if ($cat == $category) + $cat_found = 1; } else if ($line[0] != "") { |