Issue Bug Closed

#15672problem with selecting random mirror in extension manager

Peter Niederlag 02/19/06, 14:37 updated 08/12/06, 14:17

Description

Theres a bug in the function:

SC_mod_tools_em_index->getMirrorURL()

As long as one hasn#t set a prefered mirror the code is supposed to select a mirror on a random base from an array by using the function

$rand=array_rand$mirrors)

array_rand returns an Integer when called without the second argument therfor the line

$url = ‘http://’.$mirrors[$rand0][‘host’].$mirrors[$rand0][‘path’];

does not wok as intended.

small attached patch fixes the problem.

(issue imported from #M2630)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.