Ignore:
Timestamp:
Sep 25, 2011, 9:55:57 PM (13 years ago)
Author:
Eric
Message:

bug 2445 fixed : Duplicate key MySql error when a registered user tries to validate his registration twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/include/functions.inc.php

    r12189 r12227  
    16011601    $data = pwg_db_fetch_assoc(pwg_query($query));
    16021602
    1603     if (!empty($data) and isset($data['user_id']))
     1603    if (!empty($data) and isset($data['user_id']) and is_null($data['date_check']))
    16041604    {
    16051605      $query = "
     
    17791779                        }
    17801780                }
     1781    else if (!empty($data) and !is_null($data['date_check']))
     1782    {
     1783      return false;
     1784    }
    17811785        }
    17821786  else
Note: See TracChangeset for help on using the changeset viewer.