Fix filter_input call

This commit is contained in:
Olivier PEREZ 2014-12-21 00:04:41 +01:00
parent 45716d15c1
commit 26b0c08128

View File

@ -64,7 +64,7 @@ if (isset($_POST['update_poll_info'])) {
// Update the right poll field // Update the right poll field
if ($field == 'title') { if ($field == 'title') {
$title = $filter_input(INPUT_POST, 'title', FILTER_DEFAULT); $title = filter_input(INPUT_POST, 'title', FILTER_DEFAULT);
if ($title) { if ($title) {
$poll->title = $title; $poll->title = $title;
$updated = true; $updated = true;