Improved array handling

This commit is contained in:
root 2008-09-19 17:47:10 +00:00
parent 7385694bb2
commit b8f2e3b9da

View file

@ -63,7 +63,7 @@
{ {
$query = "update `email` set `hash`='',`modified`=NOW() where `id`='$emailid'"; $query = "update `email` set `hash`='',`modified`=NOW() where `id`='$emailid'";
mysql_query($query); mysql_query($query);
$query = "update `users` set `verified`='1' where `id`='$row[memid]' and `email`='$row[email]' and `verified`='0'"; $query = "update `users` set `verified`='1' where `id`='".intval($row['memid'])."' and `email`='".$row['email']."' and `verified`='0'";
mysql_query($query); mysql_query($query);
showheader(_("Updated"), _("Updated")); showheader(_("Updated"), _("Updated"));
echo _("Your account and/or email address has been verified. You can now start issuing certificates for this address."); echo _("Your account and/or email address has been verified. You can now start issuing certificates for this address.");
@ -104,7 +104,7 @@
showfooter(); showfooter();
exit; exit;
} }
$query = "update `domains` set `attempts`='$row[attempts]' where `id`='$domainid'"; $query = "update `domains` set `attempts`='".intval($row['attempts'])."' where `id`='$domainid'";
mysql_query($query); mysql_query($query);
} }