sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r22325: LJSUP-12260: Error when showing display_...

Committer: vtroitsky
LJSUP-12260: Error when showing display_name for deleted identity accounts
U   trunk/cgi-bin/ljdb.pl
Modified: trunk/cgi-bin/ljdb.pl
===================================================================
--- trunk/cgi-bin/ljdb.pl	2012-06-25 14:57:45 UTC (rev 22324)
+++ trunk/cgi-bin/ljdb.pl	2012-06-25 15:07:22 UTC (rev 22325)
@@ -346,6 +346,7 @@
     my @dbh_opts = scalar(@_) == 2 ? (shift @_) : ();
     my $arg = shift;
     my $id = LJ::isu($arg) ? $arg->{'clusterid'} : $arg;
+    return undef unless ($id);
     return undef if $LJ::READONLY_CLUSTER{$id};
     return LJ::get_dbh(@dbh_opts, LJ::master_role($id));
 }

Tags: livejournal, pl, sunnyman, vtroitsky
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