diff options
Diffstat (limited to 'mirrorlist/index.php')
-rw-r--r-- | mirrorlist/index.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mirrorlist/index.php b/mirrorlist/index.php index 070e4d3cb..082b8ce3a 100644 --- a/mirrorlist/index.php +++ b/mirrorlist/index.php @@ -16,10 +16,9 @@ $list = implode(", ", $v); //$out = array($key => $getvar); }else{ $out = "Error $key: $getvar - not in list - $list"; - break; + return $out; } } - return $out; } @@ -53,7 +52,7 @@ if ($source){ if ($release && $arch && $section && $repo){ $out = check($arraycheck); - if (!$out){ + if (empty($out)){ $wsd = new Downloads(); $dl = $wsd->prepare_download(true, null); $out= str_replace('MIRROR', $dl['mirror_url'], $link); |