Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed PostgreSQL warning

  • Loading branch information...
commit de59c77a9b166b74563a85748aa7a333314519c1 1 parent 9e60911
skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/choice/mod.html
2  mod/choice/mod.html
View
@@ -109,7 +109,7 @@
$standardblanks = 10;
$count = 0;
$limitfieldlist = '';
-if (($options = get_records_menu('choice_options','choiceid', $form->instance, 'id', 'id,text')) && ($options2 = get_records_menu('choice_options','choiceid', $form->instance, 'id', 'id,maxanswers')) ) {
+if (!empty($form->instance) && ($options = get_records_menu('choice_options','choiceid', $form->instance, 'id', 'id,text')) && ($options2 = get_records_menu('choice_options','choiceid', $form->instance, 'id', 'id,maxanswers')) ) {
foreach ($options as $id => $text) {
$count++;
?>
Please sign in to comment.
Something went wrong with that request. Please try again.