diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 924ad0140d720ab181a5ccb62a6c55a18750d8a3..6aba451e5748d344adb85c6e986430bf6ae953b4 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -729,7 +729,8 @@ class DynamicFormEntryAnswer extends VerySimpleModel { } function __toString() { - return $this->toString(); + $v = $this->toString(); + return is_string($v) ? $v : (string) $this->getValue(); } }