Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug Fix: Filtering the calendar for one user now works.
  • Loading branch information
rWatcher committed Mar 4, 2010
1 parent 2769c87 commit 8d446c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/calendarview/views/calendarview_year.html.php
Expand Up @@ -26,7 +26,7 @@
} else {
$month_count = ORM::factory("item")
->viewable()
->where("owner_id", $calendar_user)
->where("owner_id", "=", $calendar_user)
->where("type", "!=", "album")
->where("captured", ">=", mktime(0, 0, 0, $counter_months, 1, $calendar_year))
->where("captured", "<", mktime(0, 0, 0, $counter_months+1, 1, $calendar_year))
Expand Down Expand Up @@ -56,7 +56,7 @@
} else {
$day_count = ORM::factory("item")
->viewable()
->where("owner_id", $calendar_user)
->where("owner_id", "=", $calendar_user)
->where("type", "!=", "album")
->where("captured", ">=", mktime(0, 0, 0, $counter_months, $curr_day, $calendar_year))
->where("captured", "<", mktime(0, 0, 0, $counter_months, ($curr_day + 1), $calendar_year))
Expand Down

0 comments on commit 8d446c4

Please sign in to comment.