Fix bad usage of quoteAndJoin in CleanLoginHistory. There's no other place where this happens. Fixes bug #11263

This commit is contained in:
Colin Kuskie 2009-11-23 10:53:27 -08:00
parent e54d02cfe6
commit dd897f50ec
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
- fixed #11254: RTF files are streamed with the wrong content-type
- fixed #10932: code showing
- fixed #11265: typo i18n
- fixed #11263: CleanLoginHistory can cause workflow errors
7.8.5
- added the EMS submission subsystem

View file

@ -115,7 +115,7 @@ sub execute {
# Stop if there are no records preceding ageToDelete
next USERLOOP unless @deleteTimes;
my $inTimes = WebGUI::SQL::quoteAndJoin( \@deleteTimes );
my $inTimes = $db->quoteAndJoin( \@deleteTimes );
$db->write( "DELETE FROM userLoginLog WHERE userId = ? AND timeStamp IN ($inTimes)", [$userId] );
} ## end while ( my (@userIdData) ...
} ## end else [ if ( not $self->get("retainLastAlways"...