joomla/joomla-cms — pull request #3897 by b2z (2014-07-13 17:08:10+00:00)
Title: Fix an empty icons div in single article view

## Summary ##

When "Show Print Icon" and "Show Email Icon" both are set to "Hide" in the parameters and you do not have an "edit" rights, still an empty div class="icons" is displayed in single article view. This patch will fix it.

## How to reproduce the problem and test the patch: ##
1. Login to BE and proceed to "Content" -> "Article manager".
2. Click on "Options" and on the first tab "Article" set "Show Print Icon" and "Show Email Icon" both to "Hide". Be sure that the same is set up in the "Menu" parameters and that you do not have an "edit" rights.
3. Proceed to single article view and notice that an empty div class="icons" is displayed.
4. Apply the patch. Notice that the div class="icons" is not displayed.
5. Set "Show Print Icon" and/or "Show Email Icon" to "Show". Be sure that the same is set up in the "Menu" parameters. Notice that the icons are displayed as expected.
6. Set "Show Print Icon" and "Show Email Icon" both to "Hide" and give yourself an "edit" rights. Notice that the icon is displayed as expected.

Thanks @proweb for reporting the bug.