Răsfoiți Sursa

Allow no-limit operation

Zachary Kotlarek 11 ani în urmă
părinte
comite
61607566f4
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      yt/subscribe.pl

+ 1 - 1
yt/subscribe.pl

@@ -171,7 +171,7 @@ if ($ENV{'MAX_INDEX'} && $ENV{'MAX_INDEX'} =~ /(\d+)/) {
 if ($ENV{'BATCH_SIZE'} && $ENV{'BATCH_SIZE'} =~ /(\d+)/) {
 if ($ENV{'BATCH_SIZE'} && $ENV{'BATCH_SIZE'} =~ /(\d+)/) {
 	$BATCH_SIZE = $1;
 	$BATCH_SIZE = $1;
 }
 }
-if ($ENV{'FETCH_LIMIT'} && $ENV{'FETCH_LIMIT'} =~ /(\d+)/) {
+if (exists($ENV{'FETCH_LIMIT'}) && $ENV{'FETCH_LIMIT'} =~ /(\d+)/) {
 	$FETCH_LIMIT = $1;
 	$FETCH_LIMIT = $1;
 }
 }