changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r18766: LJSV-1375: try'n'fix

Committer: emazin
LJSV-1375: try'n'fix
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2011-04-01 08:06:31 UTC (rev 18765)
+++ trunk/cgi-bin/LJ/S2.pm	2011-04-01 08:12:48 UTC (rev 18766)
@@ -618,8 +618,10 @@
     my $have_style = 0;
 
     if ($verify && $styleid) {
-        my $dbr = LJ::S2::get_s2_reader();
+        #my $dbr = LJ::S2::get_s2_reader();       LJSV-1375
+        my $dbr = LJ::get_db_writer();
         my $style = $dbr->selectrow_hashref("SELECT * FROM s2styles WHERE styleid=$styleid");
+        die "ERROR: " . $dbr->errstr if $dbr->err;
         if (! $style && $u) {
             delete $u->{'s2_style'};
             $styleid = 0;

Tags: changelog_bot, 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