diff options
author | Felix Dörre <felix@dogcraft.de> | 2015-06-02 21:54:38 +0200 |
---|---|---|
committer | Felix Dörre <felix@dogcraft.de> | 2015-06-02 21:54:38 +0200 |
commit | d2cd5782146fa5a7324d9f4c2f197d153810167c (patch) | |
tree | 7b5ac05c693a5b756a5438a9b65f79f7d940c3a2 | |
parent | 6ce954919e4f60c8d03f647ff6d6fbc77cc51133 (diff) | |
download | cacert-devel-d2cd5782146fa5a7324d9f4c2f197d153810167c.tar.gz cacert-devel-d2cd5782146fa5a7324d9f4c2f197d153810167c.tar.xz cacert-devel-d2cd5782146fa5a7324d9f4c2f197d153810167c.zip |
bug 1316: refix the moved code (aargh, no scoping..)bug-1316
-rw-r--r-- | pages/account/43.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/account/43.php b/pages/account/43.php index 2774fb2..e5d5a42 100644 --- a/pages/account/43.php +++ b/pages/account/43.php @@ -112,8 +112,8 @@ if(intval(array_key_exists('userid',$_REQUEST)?$_REQUEST['userid']:0) <= 0) // display user information for given user id if(intval($_REQUEST['userid']) > 0) { $userid = intval($_REQUEST['userid']); - $res =get_user_data($userid); - if(mysql_num_rows($res) <= 0) { + $user_data_res =get_user_data($userid); + if(mysql_num_rows($user_data_res) <= 0) { echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are afoot!"); } else { @@ -137,7 +137,7 @@ if(intval($_REQUEST['userid']) > 0) { $ticketmsg=_('No assurance revoked. Ticket number is missing!'); } - $row = mysql_fetch_assoc($res); + $row = mysql_fetch_assoc($user_data_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); |