From 331bcf9abfdddce5d481e254a1ee56302d2f275c Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 7 May 2010 00:33:14 +0000 Subject: [PATCH] question bank MDL-22047 The logic for whether hidden questions were shown was backwards! --- question/editlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }