diff --git a/lam/templates/profedit/profilepage.php b/lam/templates/profedit/profilepage.php index 2e3c7e44..819b9538 100644 --- a/lam/templates/profedit/profilepage.php +++ b/lam/templates/profedit/profilepage.php @@ -94,6 +94,10 @@ if (isset($_POST['save'])) { if (isset($_POST[$element])) $options[$element] = $_POST[$element]; // value is already an array else $options[$element] = array(); } + // textareas + if ($_SESSION['profile_types'][$element] == "textarea") { + $options[$element] = explode("\r\n", $_POST[$element]); + } } // remove double slashes if magic quotes are on