diff --git a/backup/restorelib.php b/backup/restorelib.php index 1fcbbae982a..4fd9b181f27 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1997,14 +1997,7 @@ foreach ($info as $category) { //Skip empty categories (some backups can contain them) if (!empty($category->id)) { - $catrestore = "restore_question_categories"; - if (function_exists($catrestore)) { - //print_object ($category); //Debug - $status = $catrestore($category,$restore); - } else { - //Something was wrong. Function should exist. - $status = false; - } + $status = restore_question_categories($category,$restore); } }