madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20922: LJSV-2014: Fix: Incorrect mapping of sup...

Committer: sbelyaev
LJSV-2014: Fix: Incorrect mapping of support tags
U   trunk/cgi-bin/LJ/Support/Request/Tag.pm
Modified: trunk/cgi-bin/LJ/Support/Request/Tag.pm
===================================================================
--- trunk/cgi-bin/LJ/Support/Request/Tag.pm	2012-01-18 08:39:23 UTC (rev 20921)
+++ trunk/cgi-bin/LJ/Support/Request/Tag.pm	2012-01-18 08:42:33 UTC (rev 20922)
@@ -235,11 +235,11 @@
                                                     undef,
                                                     $sptagid);
 
-        my $spid = $dbh->selectrow_array( 'SELECT spid ' .
-                                          'FROM supporttagmap '.
-                                          'WHERE sptagid=?',
-                                          undef,
-                                          $sptagid );
+        my ($spid) = $dbh->selectrow_array( 'SELECT spid ' .
+                                            'FROM supporttagmap '.
+                                            'WHERE sptagid = ?',
+                                            undef,
+                                            $exists_stagid );
 
         $dbh->do( "DELETE FROM supporttag WHERE sptagid = $sptagid" );
         $dbh->do( "DELETE FROM supporttagmap WHERE sptagid = $sptagid" );

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