[BUGFIX] ExtDirectApi uses an undefined variable 15/19115/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:28:33 +0000 (21:28 +0100)
commit7218ab01bb9a9e8a7ab4eeb0fae212295802b4fd
treee3c420198b96124c9c5de45c8b64e0cfd6b4f67e
parenta8117c05deb34af008fded2581e131436aa183d5
[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/19115
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/ExtDirect/ExtDirectApi.php