[BUGFIX] Menu link creation should always return an array
authorXavier Perseguers <xavier@typo3.org>
Thu, 20 Oct 2011 19:56:18 +0000 (21:56 +0200)
committerXavier Perseguers <xavier@typo3.org>
Fri, 21 Oct 2011 07:24:48 +0000 (09:24 +0200)
commit8fd9d5db99234a1e17bd00ef319c975097565d8f
tree081be8d94402ed64eb8eab79b99e955887a8e4be
parentdad4d7864b40189b39ac105c04890be3a534edf6
[BUGFIX] Menu link creation should always return an array

According to the documentation, method link() returns an array with a
few keys. In case of error however, FALSE is returned which in turn
crashes PHP if the returned value is not post-processed and sent as
this to t3lib_div::implodeAttributes() which forces an array to be
passed as argument.

Change-Id: I7a593dd7eec2bee9e9f84415ccdd592f4d767caf
Fixes: #31079
Related: #17037
Releases: 4.6
Reviewed-on: http://review.typo3.org/6155
Reviewed-by: Philipp Gampe
Reviewed-by: Markus Klein
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/cms/tslib/class.tslib_menu.php