Committer: sbelyaev
LJSUP-10503: duplication of delay postsU trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm =================================================================== --- trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm 2012-09-05 13:40:09 UTC (rev 22814) +++ trunk/cgi-bin/LJ/DelayedEntry/Scheduler.pm 2012-09-05 13:50:43 UTC (rev 22815) @@ -88,8 +88,10 @@ "FROM delayedlog2 ". "WHERE posttime <= NOW() AND " . "finaltime IS NULL AND " . - "(lastposttry <= $time OR lastposttry IS NULL) " . - "LIMIT 1000" ); + "(lastposttry <= ? OR lastposttry IS NULL) " . + "LIMIT 1000", + undef, + $time ); foreach my $tuple (@$list) { push @entries, LJ::DelayedEntry->load_data($dbh,