diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2016-05-30 12:57:41 +0200 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2016-05-30 12:57:41 +0200 |
commit | 567c0f2dcccfc277d69c7b191f359035bda0ae30 (patch) | |
tree | 8b31dfe1d923782bb5ce6c22303ba0afb5f20340 | |
parent | 28a114e7c0c1bab88c5c4ad04f8e91ce95eec7b4 (diff) | |
download | www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar.gz www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar.bz2 www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar.xz www-567c0f2dcccfc277d69c7b191f359035bda0ae30.zip |
fix var
-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); |