[BUGFIX] DBAL admin_query() check array before accessing it 96/32996/2
authorMarkus Klein <klein.t3@reelworx.at>
Sun, 28 Sep 2014 13:59:09 +0000 (15:59 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 28 Sep 2014 20:45:33 +0000 (22:45 +0200)
commit7a1c0a38bd63d110f9966448e706b2537ba2e1e4
tree9af44ee62be4869ef845779029f59256df1b2947
parent1cc0a309fc1efc47218de07d1437e614a49fee1b
[BUGFIX] DBAL admin_query() check array before accessing it

Move the $parsedQuery array access after the is_array() check in
DatabaseConnection::admin_query() to avoid PHP warnings.

Releases: master, 6.2
Resolves: #61929
Change-Id: I641d1e0d1dbe0001bd7082fbed1ce5ddb35172f8
Reviewed-on: http://review.typo3.org/32996
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php