Simplify purge_participants

master
Daniel Berteaud 10 years ago
parent 88c5d3ccb2
commit a6dc7c9ce5
  1. 6
      vroom.pl

@ -490,13 +490,13 @@ helper purge_participants => sub {
OR `last_activity` IS NULL'); OR `last_activity` IS NULL');
}; };
if ($@){ if ($@){
return {msg => $@}; return 0;
} }
$sth->execute; $sth->execute;
if ($sth->err){ if ($sth->err){
return {msg => "DB Error: " . $sth->errstr . " (code " . $sth->err . ")"}; return 0;
} }
return {ok => 1}; return 1;
}; };
# Purge unused rooms # Purge unused rooms

Loading…
Cancel
Save