From 9c2e831095537f72be9f76c9ce794aed022076c9 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 26 Aug 2012 14:09:22 +0000 Subject: [PATCH] support textarea --- lam/templates/profedit/profilepage.php | 4 ++++ 1 file changed, 4 insertions(+) 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