Skip to content

Commit 69915ff

Browse files
committed
ensure editor plugin is set
1 parent 925323b commit 69915ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public_html/lists/admin/send_core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@
861861
$maincontent .= '<div id="messagecontent" class="field"><label for="message">'.s('Compose Message').Help('message').'</label> ';
862862
$forwardcontent .= '<div id="messagecontent" class="field"><label for="forwardmessage">'.s('Compose Message').Help('forwardmessage').'</label> ';
863863

864-
if (!empty($GLOBALS['editorplugin'])) {
864+
if (!empty($GLOBALS['editorplugin']) && !empty($GLOBALS['plugins'][$GLOBALS['editorplugin']])) {
865865
$maincontent .= '<div>'.$GLOBALS['plugins'][$GLOBALS['editorplugin']]->editor('message',
866866
$messagedata['message']).'</div>';
867867
} else {

public_html/lists/admin/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ function toggletexttemplate(){
331331
<td colspan="2">
332332

333333
<?php
334-
if ($GLOBALS['editorplugin']) {
334+
if (!empty($GLOBALS['editorplugin']) && !empty($GLOBALS['plugins'][$GLOBALS['editorplugin']])) {
335335
echo $GLOBALS['plugins'][$GLOBALS['editorplugin']]->editor('template',
336336
stripslashes($data['template'])).'</div>';
337337
} else {

0 commit comments

Comments
 (0)