aboutsummaryrefslogtreecommitdiff
path: root/lib/image.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-10-05 23:45:29 +0000
committerCash Costello <cash.costello@gmail.com>2009-10-05 23:45:29 +0000
commit8fdbddca3d0f4712036675d5e32d5db9a8a7931b (patch)
tree57b59b4e6755c3bf416f3a48211405c943977619 /lib/image.php
parent1a7154ad17d69107cafd1f80e71e7cd5406f811c (diff)
downloadelgg-8fdbddca3d0f4712036675d5e32d5db9a8a7931b.tar.gz
elgg-8fdbddca3d0f4712036675d5e32d5db9a8a7931b.tar.bz2
only counting human viewers now
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php
index f782f0386..34b054898 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -138,7 +138,7 @@
*/
public function addView($viewer_guid)
{
- if ($viewer_guid != $this->owner_guid)
+ if ($viewer_guid != $this->owner_guid && tp_is_person())
create_annotation($this->getGUID(), "tp_view", "1", "integer", $viewer_guid, ACCESS_PUBLIC);
}
}