From f86c2c84b1f0b94108600b2be0c83a6f83474c7d Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 7 May 2007 07:08:41 +0000 Subject: [PATCH] fixed error in import.php category object fetching logic --- question/import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/import.php b/question/import.php index 7e0b794e75..ac3cb82eef 100644 --- a/question/import.php +++ b/question/import.php @@ -57,7 +57,7 @@ - if ($category = get_record("question_categories", "id", $pagevars['cat'])) { + if (!$category = get_record("question_categories", "id", $pagevars['cat'])) { // if no valid category was given, use the default category print_error('nocategory','quiz'); } -- 2.39.5