MDL-23395, go straight to page editing page when title is not empyt and forceformat is set

This commit is contained in:
Dongsheng Cai
2010-11-08 06:33:00 +00:00
parent ae671b6c67
commit 97f2eb45a1
4 changed files with 24 additions and 19 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ $version = optional_param('version', -1, PARAM_INT);
$attachments = optional_param('attachments', 0, PARAM_INT);
$deleteuploads = optional_param('deleteuploads', 0, PARAM_RAW);
if (is_array($newcontent)) {
$newconent = '';
if (!empty($newcontent) && is_array($newcontent)) {
$newcontent = $newcontent['text'];
}