From 7757d278051f9ef782e30b0ff52c24b2fc294a07 Mon Sep 17 00:00:00 2001 From: John Okely Date: Thu, 24 Aug 2017 08:28:55 +0800 Subject: [PATCH] MDL-36985 atto: removeorphaneddrafts should be optional --- lib/editor/atto/plugins/managefiles/manage_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/atto/plugins/managefiles/manage_form.php b/lib/editor/atto/plugins/managefiles/manage_form.php index a5569aa92a583..57ed198c7ec41 100644 --- a/lib/editor/atto/plugins/managefiles/manage_form.php +++ b/lib/editor/atto/plugins/managefiles/manage_form.php @@ -47,7 +47,7 @@ function definition() { $elementid = $this->_customdata['elementid']; $options = $this->_customdata['options']; $files = $this->_customdata['files']; - $removeorphaneddrafts = $this->_customdata['removeorphaneddrafts']; + $removeorphaneddrafts = $this->_customdata['removeorphaneddrafts'] ?? false; $mform->addElement('header', 'filemanagerhdr', get_string('filemanager', 'atto_managefiles'));