diff options
author | plegall <plg@piwigo.org> | 2005-10-18 22:29:21 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-10-18 22:29:21 +0000 |
commit | 4b4e8a4663301b404ca6bb8f92ec1cfbeb7507a9 (patch) | |
tree | 3b09b4861e7d068f2848be079169c772346b3b70 /register.php | |
parent | 0aa1bcc73ceb24d91d5483171af994a05d2e60b0 (diff) |
- bug 172 fixed: crash when changing password with an external users
table. The same kind of correction was also made in picture.php and
register.php.
git-svn-id: http://piwigo.org/svn/trunk@902 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | register.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/register.php b/register.php index 6169d0704..c26511d02 100644 --- a/register.php +++ b/register.php @@ -47,12 +47,7 @@ if (isset($_POST['submit'])) if (count($errors) == 0) { - $query = ' -SELECT id - FROM '.USERS_TABLE.' - WHERE username = \''.$_POST['login'].'\' -;'; - list($user_id) = mysql_fetch_array(pwg_query($query)); + $user_id = get_userid($_POST['login']); $session_id = session_create($user_id, $conf['session_length']); $url = 'category.php?id='.$session_id; redirect($url); |