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 "
";
}
?>