Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Markus Hermann
wp-polls
Commits
0d038fc4
Unverified
Commit
0d038fc4
authored
Jan 08, 2019
by
Lester Chan
Browse files
Default value of pollq_expirty is now 0
parent
5a0dc5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
polls-manager.php
View file @
0d038fc4
...
...
@@ -39,14 +39,14 @@ if(!empty($_POST['do'])) {
$pollq_timestamp_minute
=
(
int
)
sanitize_key
(
$_POST
[
'pollq_timestamp_minute'
]);
$pollq_timestamp_second
=
(
int
)
sanitize_key
(
$_POST
[
'pollq_timestamp_second'
]);
$pollq_timestamp
=
gmmktime
(
$pollq_timestamp_hour
,
$pollq_timestamp_minute
,
$pollq_timestamp_second
,
$pollq_timestamp_month
,
$pollq_timestamp_day
,
$pollq_timestamp_year
);
if
(
$pollq_timestamp
>
current_time
(
'timestamp'
)
)
{
if
(
$pollq_timestamp
>
current_time
(
'timestamp'
)
)
{
$pollq_active
=
-
1
;
}
}
// Poll End Date
$pollq_expiry_no
=
isset
(
$_POST
[
'pollq_expiry_no'
]
)
?
(
int
)
sanitize_key
(
$_POST
[
'pollq_expiry_no'
]
)
:
0
;
if
(
$pollq_expiry_no
==
1
)
{
$pollq_expiry
=
''
;
if
(
$pollq_expiry_no
==
=
1
)
{
$pollq_expiry
=
0
;
}
else
{
$pollq_expiry_day
=
(
int
)
sanitize_key
(
$_POST
[
'pollq_expiry_day'
]);
$pollq_expiry_month
=
(
int
)
sanitize_key
(
$_POST
[
'pollq_expiry_month'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment