aboutsummaryrefslogtreecommitdiff
path: root/mostviewedimagesthisyear.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-06-08 14:38:45 +0000
committerGreg Froese <greg.froese@gmail.com>2009-06-08 14:38:45 +0000
commited5bf08b0a312cfc4bb6b885b0ca293d4b10869b (patch)
treeb0f89fda59e3a4bac71508aab5b8b5609d988dba /mostviewedimagesthisyear.php
parent0b4487d2200a4818fd52d6fbbb1f252e053141c6 (diff)
downloadelgg-ed5bf08b0a312cfc4bb6b885b0ca293d4b10869b.tar.gz
elgg-ed5bf08b0a312cfc4bb6b885b0ca293d4b10869b.tar.bz2
removed owner counts from mostviewed pages and updated view info on image view
Diffstat (limited to 'mostviewedimagesthisyear.php')
-rw-r--r--mostviewedimagesthisyear.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mostviewedimagesthisyear.php b/mostviewedimagesthisyear.php
index d0f246634..807260769 100644
--- a/mostviewedimagesthisyear.php
+++ b/mostviewedimagesthisyear.php
@@ -26,7 +26,7 @@
FROM " . $prefix . "entities ent
INNER JOIN " . $prefix . "entity_subtypes sub ON ent.subtype = sub.id
AND sub.subtype = 'image'
- INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid
+ INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid AND ann1.owner_guid != ent.owner_guid
INNER JOIN " . $prefix . "metastrings ms ON ms.id = ann1.name_id
AND ms.string = 'tp_view'
WHERE ann1.time_created BETWEEN $time_info->start AND $time_info->end