From 3b3370febfe9976a9caec1ee160ccbd1f9c8c428 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Mon, 12 Jan 2009 02:27:53 +0000 Subject: [PATCH] fixed regression caused by patch for MDL-15105 --- mod/choice/backuplib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/choice/backuplib.php b/mod/choice/backuplib.php index 329d686679..2b1439894d 100644 --- a/mod/choice/backuplib.php +++ b/mod/choice/backuplib.php @@ -123,9 +123,9 @@ $status = true; - $choice_answers = $DB->get_records("choice_options", array("choiceid" => $choice),"id"); + $choice_options = $DB->get_records("choice_options", array("choiceid" => $choice),"id"); //If there is options - if ($choice_options) { + if (!empty($choice_options)) { //Write start tag $status =fwrite ($bf,start_tag("OPTIONS",4,true)); //Iterate over each answer -- 2.39.5