From a6dc7c9ce573a86520c1377328ccd721491616d8 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 16 Oct 2014 21:51:09 +0200 Subject: [PATCH] Simplify purge_participants --- vroom.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vroom.pl b/vroom.pl index df8005d..6fdfe8d 100755 --- a/vroom.pl +++ b/vroom.pl @@ -490,13 +490,13 @@ helper purge_participants => sub { OR `last_activity` IS NULL'); }; if ($@){ - return {msg => $@}; + return 0; } $sth->execute; if ($sth->err){ - return {msg => "DB Error: " . $sth->errstr . " (code " . $sth->err . ")"}; + return 0; } - return {ok => 1}; + return 1; }; # Purge unused rooms