Permalink
Browse files

removing extraneous join which was causing duplicates of events on th…

…e API
  • Loading branch information...
1 parent d978f42 commit c8114bd793f62930b4f259afd5dee33056002fab @lornajane lornajane committed May 8, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/api-v2/models/EventMapper.php
@@ -110,7 +110,6 @@ protected function getEvents($resultsperpage, $start, $where = null, $order = nu
END as comments_enabled, '
. 'current_ua.uid as attending '
. 'from events '
- . 'left join user_attend ua on ua.eid = events.ID '
. 'left join user_attend current_ua on (current_ua.eid = events.ID and current_ua.uid ';
if(isset($this->_request->user_id)) {
$sql .= ' = ' . $this->_request->user_id;

0 comments on commit c8114bd

Please sign in to comment.