summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-02-19 00:03:54 +0100
committerMichael Tänzer <neo@nhng.de>2014-02-19 00:03:54 +0100
commitafd9564a24ce894d25f2ce1d49976833a980f538 (patch)
treea86fb0d21bdc13ffacba000c349b5081b80b1ed5 /pages
parent1404a1b940a3f22c505e406654dba44c4fe7ad7e (diff)
downloadcacert-devel-afd9564a24ce894d25f2ce1d49976833a980f538.tar.gz
cacert-devel-afd9564a24ce894d25f2ce1d49976833a980f538.tar.xz
cacert-devel-afd9564a24ce894d25f2ce1d49976833a980f538.zip
bug 1221: SEs should not be able to change the revocation date of an
Assurance after it's revoked Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages')
-rw-r--r--pages/account/43.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index a81d9a3..7aac46f 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -26,10 +26,10 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
$res = mysql_query("select `to` from `notary` where `id`='$assurance' and `deleted` = 0");
if ($res) {
$row = mysql_fetch_assoc($res);
- }
- mysql_query("update `notary` set `deleted`=NOW() where `id`='$assurance'");
- if ($row) {
- fix_assurer_flag($row['to']);
+ mysql_query("update `notary` set `deleted`=NOW() where `id`='$assurance'");
+ if ($row) {
+ fix_assurer_flag($row['to']);
+ }
}
}