Commit 37e738c5 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractException.php: fixed problem with uninitialised array element.

parent d953e9d1
......@@ -111,7 +111,7 @@ class AbstractException extends \Exception {
$arrDebugShow[EXCEPTION_SIP] = $store->getStore(STORE_SIP);
$arrDebugShow[EXCEPTION_PAGE_ID] = $t3Vars[TYPO3_PAGE_ID];
$arrDebugShow[EXCEPTION_TT_CONTENT_UID] = $t3Vars[TYPO3_TT_CONTENT_UID];
$arrDebugShow[EXCEPTION_FE_USER] = $t3Vars[TYPO3_FE_USER];
$arrDebugShow[EXCEPTION_FE_USER] = $t3Vars[TYPO3_FE_USER]??'';
$arrDebugShow[EXCEPTION_FE_USER_STORE_USER] = Store::getVar(TYPO3_FE_USER, STORE_USER);
// Optional existing arrays will be flattened
......
......@@ -1047,7 +1047,7 @@ class Support {
// date/datetime
if ($maxLength !== false) {
if (is_numeric($formElement[FE_MAX_LENGTH]) && $formElement[FE_MAX_LENGTH] != 0) {
if (isset($formElement[FE_MAX_LENGTH]) && is_numeric($formElement[FE_MAX_LENGTH]) && $formElement[FE_MAX_LENGTH] != 0) {
if ($formElement[FE_MAX_LENGTH] > $maxLength) {
$formElement[FE_MAX_LENGTH] = $maxLength;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment