1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 12:51:52 +02:00

Issue #4299 - PHP8 fatal error fixes

This commit is contained in:
Cameron
2021-10-17 08:43:07 -07:00
parent 8d968d2ee3
commit 73dfbf0d74
5 changed files with 22 additions and 18 deletions

View File

@@ -53,7 +53,7 @@ if (isset($_POST['submit']))
{
if($_POST['poll_title'])
{
define("POLLID",$_POST['poll_id']);
define("POLLID", (int) $_POST['poll_id']);
$poll->submit_poll();
$mes->addSuccess(LAN_CREATED);
unset($_POST['poll_title'], $_POST['poll_option'], $_POST['activate'], $_POST['poll_comment']);