cvs: bugtracker /template/generic/user verify.php
| From: | Barry Carlyon | Date: | Fri, 15 Aug 2008 13:11:27 +0000 |
| Subject: | cvs: bugtracker /template/generic/user verify.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-2437@lists.php.net to get a copy of this message | ||
bcarlyon Fri Aug 15 13:11:27 2008 UTC
Modified files:
/bugtracker/template/generic/user verify.php
Log:
Fixed a bug which meant when a user verifys, all pending users do too, whoops!
http://cvs.php.net/viewvc.cgi/bugtracker/template/generic/user/verify.php?r1=1.11&r2=1.12&diff_format=u
Index: bugtracker/template/generic/user/verify.php
diff -u bugtracker/template/generic/user/verify.php:1.11
bugtracker/template/generic/user/verify.php:1.12
--- bugtracker/template/generic/user/verify.php:1.11 Fri Aug 15 11:41:46 2008
+++ bugtracker/template/generic/user/verify.php Fri Aug 15 13:11:27 2008
@@ -37,7 +37,7 @@
* @author Barry Carlyon <bcarlyon@php.net>
* @copyright 2008-2008 Barry Carlyon
* @license http://www.opensource.org/licenses/bsd-license.php
BSD License
-* @version CVS: $Id: verify.php,v 1.11 2008/08/15 11:41:46 bcarlyon Exp $
+* @version CVS: $Id: verify.php,v 1.12 2008/08/15 13:11:27 bcarlyon Exp $
* @link http://gsoc.barrycarlyon.servegame.org/
*/
@@ -78,7 +78,7 @@
if ($ourkey == $tehkey)
{
//update that database
- $query = 'UPDATE ' . USER_TABLE . ' SET account_type = \'' . USER .
'\'';
+ $query = 'UPDATE ' . USER_TABLE . ' SET account_type = \'' . USER .
'\' WHERE handle = \'' .$handle . '\'';
$db->get_data($query);
if ($db->affected_rows)
{