Explorar o código

Allow no-limit operation

Zachary Kotlarek %!s(int64=11) %!d(string=hai) anos
pai
achega
61607566f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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+)/) {
 	$BATCH_SIZE = $1;
 }
-if ($ENV{'FETCH_LIMIT'} && $ENV{'FETCH_LIMIT'} =~ /(\d+)/) {
+if (exists($ENV{'FETCH_LIMIT'}) && $ENV{'FETCH_LIMIT'} =~ /(\d+)/) {
 	$FETCH_LIMIT = $1;
 }