bug 1316: move update code to the front, that the new data is displayed immediately
authorFelix Dörre <felix@dogcraft.de>
Tue, 12 May 2015 21:16:36 +0000 (23:16 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 12 May 2015 21:16:36 +0000 (23:16 +0200)
pages/account/43.php

index 7ea782d..2774fb2 100644 (file)
@@ -116,13 +116,6 @@ if(intval($_REQUEST['userid']) > 0) {
     if(mysql_num_rows($res) <= 0) {
         echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are afoot!");
     } else {
-        $row = mysql_fetch_assoc($res);
-        $query = "select sum(`points`) as `points` from `notary` where `to`='".intval($row['id'])."' and `deleted` = 0";
-        $dres = mysql_query($query);
-        $drow = mysql_fetch_assoc($dres);
-        $alerts =get_alerts(intval($row['id']));
-
-//display account data
 
 //deletes an assurance
         if(array_key_exists('assurance',$_REQUEST) && $_REQUEST['assurance'] > 0 && $ticketvalidation == true)
@@ -144,6 +137,15 @@ if(intval($_REQUEST['userid']) > 0) {
             $ticketmsg=_('No assurance revoked. Ticket number is missing!');
         }
 
+        $row = mysql_fetch_assoc($res);
+        $query = "select sum(`points`) as `points` from `notary` where `to`='".intval($row['id'])."' and `deleted` = 0";
+        $dres = mysql_query($query);
+        $drow = mysql_fetch_assoc($dres);
+        $alerts =get_alerts(intval($row['id']));
+
+//display account data
+
+
 //Ticket number
 ?>