summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--link.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/link.module b/link.module
index 7de1a17..fbd7247 100644
--- a/link.module
+++ b/link.module
@@ -95,7 +95,7 @@ function link_field_settings($op, $field) {
$form['display']['url_cutoff'] = array(
'#type' => 'textfield',
'#title' => t('URL Display Cutoff'),
- '#default_value' => $field['display']['url_cutoff'] ? $field['display']['url_cutoff'] : '80',
+ '#default_value' => isset($field['display']['url_cutoff']) ? $field['display']['url_cutoff'] : '80',
'#description' => t('If the user does not include a title for this link, the URL will be used as the title. When should the link title be trimmed and finished with an elipsis (…)? Leave blank for no limit.'),
'#maxlength' => 3,
'#size' => 3,