diff --git a/inc/question.class.php b/inc/question.class.php index 4691b2978..ab1e834fb 100644 --- a/inc/question.class.php +++ b/inc/question.class.php @@ -405,7 +405,7 @@ public function prepareInputForAdd($input) { if (!$this->skipChecks) { $input = $this->checkBeforeSave($input); - if (!empty($input['default_values'] && $input['fieldtype'] === 'textarea')) { + if (!empty($input['default_values']) && $input['fieldtype'] === 'textarea') { $input['default_values'] = str_replace('\r\n', '', $input['default_values']); }