Commit 2bc30611 authored by Thomas Brace's avatar Thomas Brace
Browse files

Address PR comments

parent 564556a3
......@@ -881,11 +881,11 @@ if(!function_exists('get_pollvoters')) {
### Function: Get Poll Time Based on Poll ID and Date Format
if(!function_exists('get_polltime')) {
function get_polltime($poll_id, $date_format = "d/m/Y", $display = true) {
function get_polltime($poll_id, $date_format = 'd/m/Y', $display = true) {
global $wpdb;
$poll_id = (int) $poll_id;
$timestamp = (int) $wpdb->get_var( $wpdb->prepare("SELECT pollq_timestamp FROM $wpdb->pollsq WHERE pollq_id = %d LIMIT 1", $poll_id));
$formatted_date = date($date_format,$timestamp);
$formatted_date = date( $date_format,$timestamp );
if($display) {
echo $formatted_date;
} else {
......
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