[BUGFIX] ExtDirectApi uses an undefined variable 60/18760/2
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 6 Mar 2013 18:24:44 +0000 (22:24 +0400)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 20 Mar 2013 20:24:02 +0000 (21:24 +0100)
commite68a0d492c3d6ca0e46dc802d993f139dd24c34b
tree8e9509d57ed78e1035fb5a29f7e583137c63ce8d
parent4c6d7726a0f1b9deefc0f5794ab3cb3897e57dfa
[BUGFIX] ExtDirectApi uses an undefined variable

Method generateAPI() sets $className inside the condition but later uses
it without checking if it is empty or not. The result is a PHP warning
"Invalid argument supplied for foreach()".

Change-Id: I7fd2bf88374661a8b54023aee9fe2af5619471b0
Resolves: #46075
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/18760
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/ExtDirect/ExtDirectApi.php