Authored by tmq

bug

... ... @@ -155,9 +155,9 @@ EOL;
$len = count($banners);
if($len >=3)
{
$temp = array_slice($banners, 0, 1);
$temp = array_slice($banners, 0, 2);
$pos = rand(1, $len - 1);
$banners = array_merge($temp, array_slice($banners, $pos, 1));
$banners = array_merge($temp, array_slice($banners, $pos, 2));
}
foreach($banners as $banner):
$res_size = json_decode($banner['res_size'], true);
... ...