summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-29 17:25:34 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-29 17:25:34 +0200
commit029baf4f3bc7d7d07100bf6eb9792fd28377616d (patch)
tree6bd7a886640f7ec9c26f23036ec6998f9d036bcc /pages
parentbb11f3a0645a6b96767c9c318fa239a12c3351e5 (diff)
downloadcacert-devel-029baf4f3bc7d7d07100bf6eb9792fd28377616d.tar.gz
cacert-devel-029baf4f3bc7d7d07100bf6eb9792fd28377616d.tar.xz
cacert-devel-029baf4f3bc7d7d07100bf6eb9792fd28377616d.zip
bug 1138: Only revoke assurance if we actually found one
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages')
-rw-r--r--pages/account/43.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index dcfa378..e92950f 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -135,8 +135,8 @@ if(intval($_REQUEST['userid']) > 0) {
$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) {
+ mysql_query("update `notary` set `deleted`=NOW() where `id`='$assurance'");
fix_assurer_flag($trow['to']);
}
}