Commit f29e647a authored by Liam Morland's avatar Liam Morland Committed by Liam Morland
Browse files

Issue #3263430: Prevent passing NULL to trim()

parent 4fc68cd3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1331,7 +1331,7 @@ function biblio_form($node, &$form_state) {
      '#type' => 'textfield',
      '#title' => t('Title'),
      '#required' => TRUE,
      '#default_value' => trim((isset($form_state['values']['title']) ? $form_state['values']['title'] : $node->title)),
      '#default_value' => trim((string) (isset($form_state['values']['title']) ? $form_state['values']['title'] : $node->title)),
      '#maxlength' => 255,
      '#size' => 120,
      '#weight' => 1,