fixed a bug in multihost introduced with groups code

This commit is contained in:
Jordi Sanfeliu 2012-11-20 09:26:48 +01:00
parent 481ac7b108
commit 9ff2124cd8
1 changed files with 6 additions and 6 deletions

View File

@ -13309,12 +13309,7 @@ sub multihost {
my @URL;
my @TEMP_LIST;
if($val eq "all") {
for($n = 0; $n < scalar(@REMOTEHOST_LIST); $n += 2) {
push(@HOST, $REMOTEHOST_LIST[$n]);
push(@URL, $REMOTEHOST_LIST[$n + 1]);
}
} else {
if($val =~ m/group[0-9]*/) {
$gnum = substr($val, 5, length($val));
@TEMP_LIST = split(':', $REMOTEGROUP_LIST[2 * $gnum + 1]);
$gnum = scalar(@TEMP_LIST);
@ -13327,6 +13322,11 @@ sub multihost {
}
}
}
} else {
for($n = 0; $n < scalar(@REMOTEHOST_LIST); $n += 2) {
push(@HOST, $REMOTEHOST_LIST[$n]);
push(@URL, $REMOTEHOST_LIST[$n + 1]);
}
}
$MULTIHOST_IMGS_PER_ROW = 1 unless $MULTIHOST_IMGS_PER_ROW > 1;