aboutsummaryrefslogtreecommitdiff
path: root/pages/photos/image/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/photos/image/view.php')
-rw-r--r--pages/photos/image/view.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/photos/image/view.php b/pages/photos/image/view.php
index f172b7cd6..22ccfb34d 100644
--- a/pages/photos/image/view.php
+++ b/pages/photos/image/view.php
@@ -11,6 +11,11 @@ group_gatekeeper();
// get the photo entity
$photo_guid = (int) get_input('guid');
$photo = get_entity($photo_guid);
+if (!$photo) {
+
+}
+
+$photo->addView();
// set page owner based on owner of photo album
$album = $photo->getContainerEntity();