Skip to content

Commit 8087324

Browse files
committed
fix lint
1 parent 71ab8e2 commit 8087324

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

inc/question.class.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,8 @@ public function prepareInputForUpdate($input) {
464464

465465
$input = $this->checkBeforeSave($input);
466466

467-
if (
468-
!empty($input['default_values'])
469-
&& (
470-
$input['fieldtype'] === 'textarea'
471-
|| $this->fields['fieldtype'] === 'textarea'
472-
)
467+
if (!empty($input['default_values']) &&
468+
($input['fieldtype'] === 'textarea' || $this->fields['fieldtype'] === 'textarea')
473469
) {
474470
$input['default_values'] = str_replace('\r\n', '', $input['default_values']);
475471
}

0 commit comments

Comments
 (0)