Please sign in to comment.
Added the "locale = $locale" condition to the ON part of the query.
Added "locale = $locale" to the ON part and changed the join type to an INNER join. Because adding it to the WHERE part caused the translation to be mandatory anyway. This cleans up the code and "INNER" joins are generally faster than LEFT joins.
- Loading branch information...
Showing with 3 additions and 11 deletions.