Unverified Commit 4eceb744 authored by Lester Chan's avatar Lester Chan
Browse files

cast it to int

parent 17f376cc
......@@ -530,7 +530,7 @@ function display_pollvote($poll_id, $display_loading = true) {
### Function: Display Results Form
function display_pollresult($poll_id, $user_voted = '', $display_loading = true) {
function display_pollresult($poll_id, $user_voted = array(), $display_loading = true) {
global $wpdb;
do_action( 'wp_polls_display_pollresult', $poll_id, $user_voted );
$poll_id = (int) $poll_id;
......@@ -541,7 +541,7 @@ function display_pollresult($poll_id, $user_voted = '', $display_loading = true)
if ( is_array( $user_voted ) ) {
$user_voted = array_map( 'intval', $user_voted );
} else {
$user_voted = (int) $user_voted;
$user_voted = array( (int) $user_voted );
}
// Temp Poll Result
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment