diff --git a/question/export.php b/question/export.php index b75b56090b0..0a61c5027ba 100644 --- a/question/export.php +++ b/question/export.php @@ -23,8 +23,8 @@ if (!$categoryid) { // need to get category from modform $showcatmenu = true; // will ensure that user can choose category - if (isset($SESSION->modform)) { - $categoryid = $SESSION->modform->category; + if (isset($SESSION->questioncat)) { + $categoryid = $SESSION->questioncat; } } diff --git a/question/import.php b/question/import.php index 4c6b1e8816c..aa3cec8c351 100644 --- a/question/import.php +++ b/question/import.php @@ -53,8 +53,8 @@ if (!$categoryid) { // try to get category from modform $showcatmenu = true; // will ensure that user can choose category - if (isset($SESSION->modform)) { - $categoryid = $SESSION->modform->category; + if (isset($SESSION->questioncat)) { + $categoryid = $SESSION->questioncat; } }