FIX
This commit is contained in:
parent
f291c4d2b4
commit
9ef1bb63e4
|
|
@ -54,7 +54,7 @@ class UserController extends Controller
|
||||||
// $photos = ArticlePhotos::model()->getByUser($id, 5);
|
// $photos = ArticlePhotos::model()->getByUser($id, 5);
|
||||||
$photos = NULL; // Скрыл фотоленту, так как туда могут попадать фотки неопубликованных статей
|
$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();
|
$points = array();
|
||||||
if (!empty($pointsIds)) {
|
if (!empty($pointsIds)) {
|
||||||
foreach ($pointsIds as $pointsId) {
|
foreach ($pointsIds as $pointsId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue