diff --git a/question/editlib.php b/question/editlib.php index 4adc8a3d251..7ba113e85f8 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -1038,7 +1038,7 @@ class question_bank_view { /// Build the where clause. $tests = array('parent = 0'); - if ($showhidden) { + if (!$showhidden) { $tests[] = 'hidden = 0'; }