This commit is contained in:
Krivchikov Dmitry 2016-04-08 17:00:28 +03:00
parent f291c4d2b4
commit 9ef1bb63e4
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class UserController extends Controller
// $photos = ArticlePhotos::model()->getByUser($id, 5);
$photos = NULL; // Скрыл фотоленту, так как туда могут попадать фотки неопубликованных статей
$pointsIds = App::DB()->query('SELECT `id` FROM `points` WHERE `author` ='.$id.' AND `status` = \'published\' AND `moderate` =1 ORDER BY `ord` DESC LIMIT 0 , 5')->fetchAll(PDO::FETCH_ASSOC);
$pointsIds = App::DB()->query('SELECT `id` FROM `points` WHERE `author` ='.$id.' AND `status` = \'published\' ORDER BY `ord` DESC LIMIT 0 , 5')->fetchAll(PDO::FETCH_ASSOC);
$points = array();
if (!empty($pointsIds)) {
foreach ($pointsIds as $pointsId) {