Commit 42de3e0d authored by Oliver Hader's avatar Oliver Hader Committed by Oliver Hader
Browse files

[BUGFIX] PHP warning on saving TypoScript with t3editor

On saving TypoScript data in the accordant backend module
using t3editor, the AJAX call issues a PHP warning
"Creating default object from empty value". This only
happens if at least PHP 5.4 is used. The reason is,
that an uninitialized and empty variable is used for
object access.

Resolves: #62984
Releasses: 4.5
Change-Id: I7567d61f0a16379db58760dd963f0330dc8ca6c8
Reviewed-on: http://review.typo3.org/34203


Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
parent 152b14b2
......@@ -172,7 +172,8 @@ class tx_t3editor_hooks_tstemplateinfo {
// process template row before saving
require_once t3lib_extMgm::extPath('tstemplate_info').'class.tx_tstemplateinfo.php';
$tstemplateinfo = t3lib_div::makeInstance('tx_tstemplateinfo'); /* @var $tstemplateinfo tx_tstemplateinfo */
// load the MOD_SETTINGS in order to check if the includeTypoScriptFileContent is set
// load the MOD_SETTINGS in order to check if the includeTypoScriptFileContent is set
$tstemplateinfo->pObj = $pObj;
$tstemplateinfo->pObj->MOD_SETTINGS = t3lib_BEfunc::getModuleData(
array('includeTypoScriptFileContent' => true),
array(),
......
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