FIX - выборка точек для незалогиненных пользователей
This commit is contained in:
parent
44e681b84d
commit
fed07fcbe5
|
|
@ -42,6 +42,7 @@ class PageController extends Controller
|
||||||
if (App::getParam('category')) {
|
if (App::getParam('category')) {
|
||||||
$param['where'] = 'categoryId = '.(int)App::getParam('category').' AND `moderate` = 1';
|
$param['where'] = 'categoryId = '.(int)App::getParam('category').' AND `moderate` = 1';
|
||||||
} else {
|
} else {
|
||||||
|
$param['where'] = '`moderate` = 1';
|
||||||
$param['limit'] = 100;
|
$param['limit'] = 100;
|
||||||
}
|
}
|
||||||
$points = Point::model()->getAll($param);
|
$points = Point::model()->getAll($param);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue