bug 1138: that "if" should contain a block
authorMichael Tänzer <neo@nhng.de>
Mon, 26 May 2014 22:09:12 +0000 (00:09 +0200)
committerMichael Tänzer <neo@nhng.de>
Mon, 26 May 2014 22:09:12 +0000 (00:09 +0200)
goto fail;

Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/notary.inc.php

index 50ba756..b568ccb 100644 (file)
@@ -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);
 }