Skip to content

Commit bc1a8bc

Browse files
authored
Merge pull request #994 from pupi1985/patch-168
Make sure there is an editor loaded when reading the content of a post
2 parents b011eb1 + 78d141e commit bc1a8bc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qa-include/app/format.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,10 @@ function qa_get_post_content($editorfield, $contentfield, &$ineditor, &$inconten
22202220

22212221
$ineditor = qa_post_text($editorfield);
22222222
$editor = qa_load_module('editor', $ineditor);
2223+
if ($editor === null) {
2224+
$editor = qa_load_module('editor', '');
2225+
}
2226+
22232227
$readdata = $editor->read_post($contentfield);
22242228

22252229
// sanitise 4-byte Unicode

0 commit comments

Comments
 (0)