joomla/joomla-cms — pull request #2443 by davidangel (2013-11-07 16:03:29+00:00)
Title: Moved $query object definition outside of conditional block.

Since there are multiple conditional blocks that may be using this
object, it needs to be defined outside of the first conditional blocks.