[BUGFIX] Fix exception in QuickEdit mode for empty pages 45/50945/3
authorManuel Selbach <manuel_selbach@yahoo.de>
Thu, 8 Dec 2016 22:22:15 +0000 (23:22 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 13 Dec 2016 04:30:22 +0000 (05:30 +0100)
commitd3cd783c59d120710602cbb2d082d827174b515b
tree3ed4abd41ead896c12b3b722fe7b3d8af0a7cc17
parentb9f493ede57f89becf0c05c8f663949ed2a4fa68
[BUGFIX] Fix exception in QuickEdit mode for empty pages

If there is no content on a page the parameter $this->eRParts[1] will be
set to e.g. /new/1 which is not an integer value and it will throw an
exception here on certain dbms, thus let's check that before as there could
not be a history on a new record and skip the query to prevent the error.

Change-Id: If33c5de067b7685e5723ceb7aa1586640abc99d8
Resolves: #78925
Releases: master, 7.6, 6.2
Reviewed-on: https://review.typo3.org/50910
Reviewed-on: https://review.typo3.org/50945
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php