From 567c0f2dcccfc277d69c7b191f359035bda0ae30 Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Mon, 30 May 2016 12:57:41 +0200 Subject: fix var --- mirrorlist/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mirrorlist/index.php') 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); -- cgit v1.2.1