From 5a6408c059c2914d9b151abdfc6e5c2a3bc0163e Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sun, 31 May 2015 16:11:59 +0300 Subject: [PATCH] FIX --- ground/controllers/PageController.php | 2 +- ground/views/point.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index 5539d8f..eb2f848 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -121,7 +121,7 @@ class PageController extends Controller $point->iLike = Like::model()->checkIsMy($pointId); - $photoLinks = PhotoLinks::model()->getAll(array('where'=>'`photo` LIKE "'.$pointId.'_%"')); + $photoLinks = PhotoLinks::model()->getAll(array('where'=>'`pointId` = '.$pointId)); $photoLinksRes = array(); if ($photoLinks) { foreach ($photoLinks as $photoLink) { diff --git a/ground/views/point.php b/ground/views/point.php index 469a238..5ac9d7c 100644 --- a/ground/views/point.php +++ b/ground/views/point.php @@ -61,6 +61,8 @@ for ($index = $index; $index < count($text); $index++) { print $text[$index] . ' '; } + + print "

"; } ?>