diff options
Diffstat (limited to 'pages/account/43.php')
-rw-r--r-- | pages/account/43.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pages/account/43.php b/pages/account/43.php index 9a9d75f..dcfa378 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -21,7 +21,6 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php"); $ticketno=''; $ticketvalidation=FALSE; - if (isset($_SESSION['ticketno'])) { $ticketno = $_SESSION['ticketno']; $ticketvalidation = valid_ticket_number($ticketno); @@ -32,6 +31,7 @@ if (isset($_SESSION['ticketmsg'])) { $ticketmsg = ''; } + // search for an account by email search, if more than one is found display list to choose if(intval(array_key_exists('userid',$_REQUEST)?$_REQUEST['userid']:0) <= 0) { @@ -132,14 +132,13 @@ if(intval($_REQUEST['userid']) > 0) { } else { $assurance = mysql_escape_string(intval($_REQUEST['assurance'])); $trow = 0; - $res = mysql_query("select `to` from `notary` where `id`='$assurance'"); + $res = mysql_query("select `to` from `notary` where `id`='$assurance' and `deleted` = 0"); if ($res) { $trow = mysql_fetch_assoc($res); - } - - mysql_query("update `notary` set `deleted`=NOW() where `id`='$assurance'"); - if ($trow) { - fix_assurer_flag($trow['to']); + mysql_query("update `notary` set `deleted`=NOW() where `id`='$assurance'"); + if ($trow) { + fix_assurer_flag($trow['to']); + } } } } elseif(array_key_exists('assurance',$_REQUEST) && $_REQUEST['assurance'] > 0 && $ticketvalidation == FALSE) { @@ -966,6 +965,7 @@ if(intval($_REQUEST['userid']) > 0) { <? // if(array_key_exists('assuredto',$_GET) && $_GET['assuredto'] == "yes") { + function showassuredto($ticketno) { ?> |