aboutsummaryrefslogtreecommitdiffstats
path: root/mirrorlist
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2016-05-30 12:57:41 +0200
committerManuel Hiebel <leuhmanu@mageia.org>2016-05-30 12:57:41 +0200
commit567c0f2dcccfc277d69c7b191f359035bda0ae30 (patch)
tree8b31dfe1d923782bb5ce6c22303ba0afb5f20340 /mirrorlist
parent28a114e7c0c1bab88c5c4ad04f8e91ce95eec7b4 (diff)
downloadwww-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar
www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar.gz
www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar.bz2
www-567c0f2dcccfc277d69c7b191f359035bda0ae30.tar.xz
www-567c0f2dcccfc277d69c7b191f359035bda0ae30.zip
fix var
Diffstat (limited to 'mirrorlist')
-rw-r--r--mirrorlist/index.php5
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);