diff options
author | Michael Tänzer <neo@nhng.de> | 2014-04-29 23:34:21 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2014-04-29 23:34:21 +0200 |
commit | 9121cc72afd46a4737f6633133873c6d826a5b51 (patch) | |
tree | e545aacb2249b92bd1cb268b320bab5aa4185052 | |
parent | 24d8235f875f9ecff3198e3f0cf8d450beae1989 (diff) | |
download | cacert-devel-bug-372.tar.gz cacert-devel-bug-372.tar.xz cacert-devel-bug-372.zip |
bug 372: `orgdomlink` has no `id` fieldbug-372
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r-- | includes/account.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/account.php b/includes/account.php index 7e9ee2a..25e2608 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2079,7 +2079,7 @@ function buildSubjectFromSession() { echo _("Renewing").": ".$row['CN']."<br>\n"; $res = mysql_query("select * from `orgdomlink` where `orgcertid`='".$row['id']."'"); while($r2 = mysql_fetch_assoc($res)) - mysql_query("insert into `orgdomlink` set `orgdomid`='".$r2['id']."', `orgcertid`='$newid'"); + mysql_query("insert into `orgdomlink` set `orgdomid`='".intval($r2['orgdomid'])."', `orgcertid`='$newid'"); waitForResult("orgdomaincerts", $newid,$oldid,0); $query = "select * from `orgdomaincerts` where `id`='$newid' and `crt_name` != ''"; $res = mysql_query($query); |