bug 1138: moved write_se_log from account.php to account/59.php
authorINOPIAE <inopiae@cacert.org>
Tue, 4 Mar 2014 22:05:21 +0000 (23:05 +0100)
committerINOPIAE <inopiae@cacert.org>
Tue, 4 Mar 2014 22:05:21 +0000 (23:05 +0100)
includes/account.php
pages/account/59.php

index eedc867..cf2509e 100644 (file)
@@ -3242,7 +3242,6 @@ function buildSubjectFromSession() {
  */
        if($id == 59){
                if ($oldid == 43 && $_SESSION['profile']['admin'] == 1) {
-                       write_se_log(intval($_REQUEST['userid']), $_SESSION['profile']['id'], 'SE View account history', $_REQUEST['ticketno']);
                        $_SESSION['support']=1;
                }ELSEIF ($oldid == 13 && intval($_REQUEST['userid']) == $_SESSION['profile']['id']){
                        $_SESSION['support']=0;
index 2fc8aa2..51eb6ef 100644 (file)
@@ -50,6 +50,9 @@ if (!valid_ticket_number($ticketno) && $support == 1) {
     showfooter();
     exit;
 }
+if ( $support == 1) {
+    write_se_log($userid, $_SESSION['profile']['id'], 'SE View account history', $_REQUEST['ticketno']);
+}
 ?>
 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
     <tr>