From ed1a53698a1d9f020c35d0cada0b9f4e990509a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 11 Oct 2007 09:51:29 +0000 Subject: #180897 by sun and dvessel: fix various XHTML validity issues in Drupal by closing unclosed tags, avoiding empty table containers, and so on --- modules/profile/profile.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/profile') diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 0a0bf3436..c7d43b74a 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -288,7 +288,7 @@ Unless you know what you are doing, it is highly recommended that you prefix the if ($type == 'selection') { $form['fields']['options'] = array('#type' => 'textarea', '#title' => t('Selection options'), - '#default_value' => $edit['options'], + '#default_value' => isset($edit['options']) ? $edit['options'] : '', '#description' => t('A list of all options. Put each option on a separate line. Example options are "red", "blue", "green", etc.'), ); } -- cgit v1.2.3