diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index 7a6ee2c..c8b4501 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -40,7 +40,7 @@ class PageController extends Controller $param = array(); $param['order']='id DESC'; if (App::getParam('category')) { - $param['where'] = 'categoryId = '.(int)App::getParam('category'); + $param['where'] = 'categoryId = '.(int)App::getParam('category').' AND `moderate` = 1'; } else { $param['limit'] = 100; }