joomla/joomla-cms — pull request #2795 by Hackwar (2014-01-15 10:17:50+00:00)
Title: Query-fix in com_content article modal

This change prevents the query from being executed when the value is 0. There is never an article with ID 0 and especially when there are more than one modal select per page, you have several unnecessary queries.