Skip to content

Commit e4ef60a

Browse files
committed
Undefined index
1 parent 24bd8dd commit e4ef60a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

assets/lib/class.modxRTEbridge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,11 @@ public function renderConfigRawString()
452452
// Get final value of editor-config
453453
public function determineValue($key, $conf=NULL)
454454
{
455-
if($conf == NULL) { $conf = $this->themeConfig[$key]; };
455+
if($conf == NULL && isset($this->themeConfig[$key])) { $conf = $this->themeConfig[$key]; };
456456

457457
$value = isset($this->themeConfig[$key]['bridged']) ? $this->themeConfig[$key]['bridged'] : NULL;
458458
$value = $value === NULL && isset($this->themeConfig[$key]['force']) ? $this->themeConfig[$key]['force'] : $value;
459-
$value = $value === NULL ? $this->themeConfig[$key]['value'] : $value;
459+
$value = $value === NULL && isset($this->themeConfig[$key]['value']) ? $this->themeConfig[$key]['value'] : $value;
460460

461461
if(!in_array($conf['type'], array('boolean','bool'))) {
462462
if ($value === '' && $conf['empty'] === false) { // Empty values not allowed

assets/plugins/tinymce4/theme/theme.tinymce4.base.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
$this->set('document_base_url', MODX_SITE_URL, 'string' ); // https://www.tinymce.com/docs/configure/url-handling/#document_base_url
4646
$this->set('entity_encoding', $this->pluginParams['entityEncoding'],'string'); // https://www.tinymce.com/docs/configure/content-filtering/#encodingtypes
47-
$this->set('entities', $this->pluginParams['entities'], 'string'); // https://www.tinymce.com/docs/configure/content-filtering/#entities
47+
$this->set('entities', isset($this->pluginParams['entities']) ? $this->pluginParams['entities'] : '', 'string'); // https://www.tinymce.com/docs/configure/content-filtering/#entities
4848

4949
$this->set('language', $this->lang('lang_code'), 'string'); // https://www.tinymce.com/docs/configure/localization/#language
5050
if($this->lang('lang_code') != 'en')
@@ -98,4 +98,4 @@
9898
theme: "mobile",
9999
plugins: [ "autosave", "lists", "autolink" ],
100100
toolbar: [ "undo", "bold", "italic", "styleselect" ]
101-
}', 'json' );
101+
}', 'json' );

0 commit comments

Comments
 (0)