need to check vars aren't empty b4 using them! - another one!
This commit is contained in:
+3
-1
@@ -74,7 +74,9 @@ function choice_add_instance($choice) {
|
||||
$option = NULL;
|
||||
$option->text = $value;
|
||||
$option->choiceid = $choice->id;
|
||||
$option->maxanswers = $choice->{'newlimit'.substr($name, 9)};
|
||||
if (isset($choice->{'newlimit'.substr($name, 9)})) {
|
||||
$option->maxanswers = $choice->{'newlimit'.substr($name, 9)};
|
||||
}
|
||||
$option->timemodified = time();
|
||||
insert_record("choice_options", $option);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user