diff options
author | Yorhel <git@yorhel.nl> | 2010-12-23 14:25:37 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-23 14:25:37 +0100 |
commit | 3eb574e4e26162aa754372fff806e4c6de8f4754 (patch) | |
tree | 32b08348512dc2f16d932676bb9b1b61fab16f3a /lib/VNDB/DB/Users.pm | |
parent | 6ff1efe0d07e24e9fb2db199c308c6cbed51e578 (diff) |
Converted the notify_announce and notify_dbedit preferences
And renamed notify_dbedit to notify_nodbedit, since the default is to
provide a notify on a database edit.
Also fixed a few bugs along the way.
Diffstat (limited to 'lib/VNDB/DB/Users.pm')
-rw-r--r-- | lib/VNDB/DB/Users.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/DB/Users.pm b/lib/VNDB/DB/Users.pm index 48e8d7ff..bd7db201 100644 --- a/lib/VNDB/DB/Users.pm +++ b/lib/VNDB/DB/Users.pm @@ -55,7 +55,7 @@ sub dbUserGet { qw|id username c_votes c_changes c_tags|, q|extract('epoch' from registered) as registered|, $o{what} =~ /extended/ ? ( - qw|mail rank salt ign_votes notify_dbedit notify_announce|, + qw|mail rank salt ign_votes|, q|encode(passwd, 'hex') AS passwd| ) : (), $o{what} =~ /hide_list/ ? 'up.value AS hide_list' : (), @@ -95,7 +95,7 @@ sub dbUserGet { join(', ', @select), join(' ', @join), \%where, $order ); - if($o{what} =~ /prefs/) { + if(@$r && $o{what} =~ /prefs/) { my %r = map { $r->[$_]{prefs} = {}; ($r->[$_]{id}, $r->[$_]) @@ -118,7 +118,7 @@ sub dbUserEdit { my %h; defined $o{$_} && ($h{$_.' = ?'} = $o{$_}) - for (qw| username mail rank salt ign_votes notify_dbedit notify_announce |); + for (qw| username mail rank salt ign_votes |); $h{'passwd = decode(?, \'hex\')'} = $o{passwd} if defined $o{passwd}; |