mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-17 16:49:35 +00:00
Fix poll not possible to be closed
Closes #532 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
12d4bdb857
commit
00ad08d037
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ if (isset($_POST['update_poll_info'])) {
|
|||
$updated = true;
|
||||
}
|
||||
} elseif ($field === 'rules') {
|
||||
$rules = strip_tags($_POST['rules']);
|
||||
$rules = (int) strip_tags($_POST['rules']);
|
||||
switch ($rules) {
|
||||
case 0:
|
||||
$poll->active = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue