support textarea

This commit is contained in:
Roland Gruber 2012-08-26 14:09:22 +00:00
parent 6ff3755e63
commit 9c2e831095
1 changed files with 4 additions and 0 deletions

View File

@ -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