aboutsummaryrefslogtreecommitdiffstats
path: root/password.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-12-14 14:36:20 +0000
committerpatdenice <patdenice@piwigo.org>2010-12-14 14:36:20 +0000
commite97974a42e64ee43d95cef258d65d9b022929dbe (patch)
tree00cef9ee9212ae653a8e266a2db51ad3dbe6c39b /password.php
parent21fe811c3b773af20a9e9d9932274cae16111cb1 (diff)
feature 2060: Remove adviser from db structure.
Remove adviser from user_list page and some db queries. git-svn-id: http://piwigo.org/svn/trunk@8131 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'password.php')
-rw-r--r--password.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/password.php b/password.php
index ff08855b0..866021b20 100644
--- a/password.php
+++ b/password.php
@@ -65,12 +65,8 @@ SELECT '.$conf['user_fields']['id'].' AS id
FROM '.USERS_TABLE.' as u
INNER JOIN '.USER_INFOS_TABLE.' AS ui
ON u.'.$conf['user_fields']['id'].' = ui.user_id
-WHERE '
- .$conf['user_fields']['email'].' = \''.$mail_address.'\' AND
- (
- ui.status = \'normal\' OR
- (ui.status in (\'admin\', \'webmaster\') AND ui.adviser = \'true\')
- )
+WHERE '.$conf['user_fields']['email'].' = \''.$mail_address.'\'
+ AND ui.status = \'normal\'
;';
$result = pwg_query($query);