Authored by tmq

bug

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