#23652clickmenu broken if no records supplied
Description
triggered by: http://bugs.typo3.org/view.php?id=15862
Problem: clickmenu can call t3lib_iconWorks::getSpriteIconForRecord($table, $this->rec, … )
with $this->rec not set.
Solution:
before getting icons, set $this->rec to an empty array if it was not set before.
It can’t be set earlier, as an is_array check is used in the cm logig earlier.
(issue imported from #M15865)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.