Plugin Directory

Changeset 213518


Ignore:
Timestamp:
03/05/2010 03:48:14 PM (16 years ago)
Author:
frekel
Message:

Fix bug with voting twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-photocontest/trunk/viewimg.php

    r194957 r213518  
    8989$order      = wppc_checkOptions($_REQUEST['order'],array('chrono','most_voted','most_viewed','recent'),'chrono');
    9090$img_id     = wppc_checkInteger($_REQUEST['img_id'],1);
    91 $emailadres = is_email($_REQUEST['wppc_voter_email']);
     91if (is_email($_REQUEST['wppc_voter_email']))
     92{
     93     $emailadres = $_REQUEST['wppc_voter_email'];
     94}
     95else
     96{
     97     $emailadres = '';
     98}
    9299$vote       = wppc_checkInteger($_REQUEST['wppc_vote']);
    93100$captcha    = wppc_checkAlphaNum($_REQUEST['wppc_captcha']);
Note: See TracChangeset for help on using the changeset viewer.