prefix . 'pitchvote'; $votes = $wpdb->get_var( $wpdb->prepare("SELECT SUM(vote) AS votes FROM $cvTable WHERE commentID = %d", $commentID)); if( !isset( $votes ) ) //there is no vote return 0; else return (int)$votes; } function CVGetOptions() { return array( 'display_rating' => get_option( 'pitchvote_display_rating' ), 'threshold' => get_option( 'pitchvote_threshold' ), 'require_login' => get_option( 'pitchvote_require_login' ) ); } ?>