diff options
Diffstat (limited to 'lib/VNWeb/User/Notifications.pm')
-rw-r--r-- | lib/VNWeb/User/Notifications.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNWeb/User/Notifications.pm b/lib/VNWeb/User/Notifications.pm index 4f45e0b3..c74cc1a8 100644 --- a/lib/VNWeb/User/Notifications.pm +++ b/lib/VNWeb/User/Notifications.pm @@ -90,10 +90,10 @@ TUWF::get qr{/$RE{uid}/notifies}, sub { my $id = tuwf->capture('id'); return tuwf->resNotFound if !auth || $id != auth->uid; - my $opt = eval { tuwf->validate(get => + my $opt = tuwf->validate(get => p => { page => 1 }, r => { anybool => 1 }, - )->data } || { p => 1, r => 0 }; + )->data; my $where = sql_and( sql('uid =', \$id), |