[BUGFIX] Avoid DB error on writing to log 57/32257/2
authorMarkus Klein <klein.t3@reelworx.at>
Tue, 19 Aug 2014 13:10:33 +0000 (15:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 20 Aug 2014 08:17:38 +0000 (10:17 +0200)
commit3bb579dffb81aa51d910471069f0931bdb650be8
treef7a13cfb3c62252448344474c34f23c736b5f226
parent85408c4bfbbd941ad348ed73fa8daaa8e7f2d1e2
[BUGFIX] Avoid DB error on writing to log

The writeLog() function of the ErrorHandler tries to log the IP that
caused the error. On CLI there is no IP hence a NULL value is being
tried to insert into the DB, where the DB field is NOT NULL.

Fix this by casting the IP to a string.

Resolves: #61051
Releases: 6.3, 6.2
Change-Id: Id46e97468bf825307258e907811d5f2c77c62161
Reviewed-on: http://review.typo3.org/32257
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Error/ErrorHandler.php