Index: showbank.php =================================================================== RCS file: /cvsroot/moodle/moodle/question/Attic/showbank.php,v retrieving revision 1.19.2.5 diff -u -r1.19.2.5 showbank.php --- showbank.php 22 May 2007 14:03:36 -0000 1.19.2.5 +++ showbank.php 25 Mar 2008 09:00:09 -0000 @@ -76,8 +76,7 @@ if ($questionlist = explode(',', $deleteselected)) { // for each question either hide it if it is in use or delete it foreach ($questionlist as $questionid) { - if (record_exists('quiz_question_instances', 'question', $questionid) or - record_exists('question_states', 'originalquestion', $questionid)) { + if (record_exists('quiz_question_instances', 'question', $questionid)) { if (!set_field('question', 'hidden', 1, 'id', $questionid)) { error('Was not able to hide question'); } @@ -105,8 +104,7 @@ if (substr($key, 0, 1) == "q") { $key = substr($key,1); $questionlist .= $key.','; - if (record_exists('quiz_question_instances', 'question', $key) or - record_exists('question_states', 'originalquestion', $key)) { + if (record_exists('quiz_question_instances', 'question', $key)) { $questionnames .= '* '; $inuse = true; }