civicrm/civicrm-core — pull request #4791 by xurizaemon (2014-12-28 18:43:04+00:00)
Title: CRM-15764 - Make opendir() usage more consistent.

When the result of opendir() is unchecked, it's unwise to start a loop based on readdir() from the directory handle.

This commit should ensure that opendir() result is always checked. Removes `@` error control operator in a couple of locations.