Unverified Commit c7527bef authored by Lester Chan's avatar Lester Chan
Browse files

Check var type

parent 04121121
......@@ -538,7 +538,11 @@ function display_pollresult($poll_id, $user_voted = '', $display_loading = true)
if( empty( $user_voted ) ) {
$user_voted = array();
}
$user_voted = array_map( 'intval', $user_voted );
if ( is_array( $user_voted ) ) {
$user_voted = array_map( 'intval', $user_voted );
} else {
$user_voted = (int) $user_voted;
}
// Temp Poll Result
$temp_pollresult = '';
......
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