FIX - выборка точек для незалогиненных пользователей

This commit is contained in:
Krivchikov Dmitry 2015-07-02 12:07:49 +03:00
parent 44e681b84d
commit fed07fcbe5
1 changed files with 1 additions and 0 deletions

View File

@ -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);