summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Users.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-02-04 11:46:00 +0100
committerYorhel <git@yorhel.nl>2011-02-04 11:46:00 +0100
commit7a5283dc5cb35aca7cefe3348d8697e29aedda15 (patch)
tree207a89f89c128ce61082a3a019b391b4cb8374c7 /lib/VNDB/DB/Users.pm
parent422451344f20a69b43b6fc4c51f89a5174ef8760 (diff)
parent876119b300473a5232b5fcc60eb403afe36e6163 (diff)
Merge branch 'beta'2.17
Conflicts: ChangeLog
Diffstat (limited to 'lib/VNDB/DB/Users.pm')
-rw-r--r--lib/VNDB/DB/Users.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/DB/Users.pm b/lib/VNDB/DB/Users.pm
index bd7db201..36ae02af 100644
--- a/lib/VNDB/DB/Users.pm
+++ b/lib/VNDB/DB/Users.pm
@@ -178,7 +178,7 @@ sub dbSessionUpdateLastUsed {
}
-# %options->{ uid id what results page }
+# %options->{ uid id what results page reverse }
# what: titles
sub dbNotifyGet {
my($s, %o) = @_;
@@ -210,8 +210,8 @@ sub dbNotifyGet {
FROM notifications n
!s
!W
- ORDER BY n.id
- |, join(', ', @select), join(' ', @join), \%where);
+ ORDER BY n.id !s
+ |, join(', ', @select), join(' ', @join), \%where, $o{reverse} ? 'DESC' : 'ASC');
return wantarray ? ($r, $np) : $r;
}