[FOLLOWUP][TASK] Fluidification of Opendocs Toolbar (2nd try) 12/50512/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 5 Nov 2016 18:07:57 +0000 (19:07 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 5 Nov 2016 18:51:12 +0000 (19:51 +0100)
commit4dfc22c5becd19e4ffe17d46811eb3a19b5abffe
treed657cf581565278b7d21fcaa5b3b990956dbc85b
parent5cf95564b8cbf6d45ddba50c015ee7436de185fa
[FOLLOWUP][TASK] Fluidification of Opendocs Toolbar (2nd try)

`list($x, )` does not work on empty arrays, causing `$x` being null then.
The code now checks whether there are actually open docs and then does
the list() stuff.

Resolves: #78051
Releases: master
Change-Id: I73d2c3ca40bea8c3dce2ac1de0ec97e136bf228b
Reviewed-on: https://review.typo3.org/50512
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php