Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r18361: fix initialization SQL for user counters...

Committer: ailyin
fix initialization SQL for user counters of type 'C' (pending comments)
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-02-18 10:01:06 UTC (rev 18360)
+++ trunk/cgi-bin/LJ/User.pm	2011-02-18 10:03:03 UTC (rev 18361)
@@ -7045,7 +7045,7 @@
                                          undef, $uid);
         $newmax = ($ppemax > $userblobmax) ? $ppemax : $userblobmax;
     } elsif ($dom eq "C") {
-        $newmax = $u->selectrow_array("SELECT MAX(pendid) FROM pendcomments WHERE jid=?",
+        $newmax = $u->selectrow_array("SELECT MAX(pendcid) FROM pendcomments WHERE jid=?",
                                       undef, $uid);
     } elsif ($dom eq "O") {
         $newmax = $u->selectrow_array("SELECT MAX(pboxid) FROM portal_config WHERE userid=?",

Tags: andy, livejournal, pm
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