summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-05-27 00:09:12 +0200
committerMichael Tänzer <neo@nhng.de>2014-05-27 00:09:12 +0200
commitcea6657d48bae2334bd37229df4e42a797b6c949 (patch)
treeac2b68c18087bb058ed79654dbdf59f1173be9f4
parent5737cf42ad75ba6415922f2a40714ac0e5ab8c6f (diff)
downloadcacert-devel-cea6657d48bae2334bd37229df4e42a797b6c949.tar.gz
cacert-devel-cea6657d48bae2334bd37229df4e42a797b6c949.tar.xz
cacert-devel-cea6657d48bae2334bd37229df4e42a797b6c949.zip
bug 1138: that "if" should contain a block
goto fail; Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/notary.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index 50ba756..b568ccb 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -1555,8 +1555,10 @@ function get_client_certs($userid, $viewall=0){
from `emailcerts`
where `emailcerts`.`memid`='".$userid."'";
if($viewall == 0)
+ {
$query .= " AND `emailcerts`.`revoked`=0 AND `emailcerts`.`renewed`=0";
$query .= " HAVING `timeleft` > 0";
+ }
$query .= " ORDER BY `emailcerts`.`modified` desc";
return mysql_query($query);
}