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

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

View File

@ -40,7 +40,7 @@ class PageController extends Controller
$param = array(); $param = array();
$param['order']='id DESC'; $param['order']='id DESC';
if (App::getParam('category')) { if (App::getParam('category')) {
$param['where'] = 'categoryId = '.(int)App::getParam('category'); $param['where'] = 'categoryId = '.(int)App::getParam('category').' AND `moderate` = 1';
} else { } else {
$param['limit'] = 100; $param['limit'] = 100;
} }