- 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
This commit is contained in:
plegall
2005-10-18 22:29:21 +00:00
parent 0aa1bcc73c
commit 4b4e8a4663
4 changed files with 9 additions and 8 deletions
+1 -6
View File
@@ -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);