Skip to content

Commit

Permalink
Fix an error for installs that use a database prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Nov 18, 2024
1 parent d9fa416 commit 31a4cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/db/EventQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function beforePrepare(): bool
'MIN(startDate) AS startDate',
'MAX(endDate) AS endDate',
])
->from('{{%events_sessions}}')
->from('{{%events_sessions}} events_sessions')
->innerJoin('{{%elements}} elements', '[[elements.id]] = [[events_sessions.id]]')
->where([
// Only count live and non-deleted session elements
Expand Down

0 comments on commit 31a4cda

Please sign in to comment.