madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22815: LJSUP-10503: duplication of delay posts

Committer: sbelyaev
LJSUP-10503: duplication of delay posts
U   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,

Tags: livejournal, madeon, pm, sbelyaev
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments