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

[ljcom] r11300: LJSUP-10890 (LJ::TwitterDigest: Can't ca...

Committer: ailyin
LJSUP-10890 (LJ::TwitterDigest: Can't call method "protected" on an undefined value)
U   trunk/cgi-bin/LJ/TwitterDigest.pm
Modified: trunk/cgi-bin/LJ/TwitterDigest.pm
===================================================================
--- trunk/cgi-bin/LJ/TwitterDigest.pm	2011-12-26 11:04:05 UTC (rev 11299)
+++ trunk/cgi-bin/LJ/TwitterDigest.pm	2011-12-27 11:17:35 UTC (rev 11300)
@@ -213,7 +213,7 @@
     my ($class, $u) = @_;
 
     my $twu = LJ::Client::Twitter->get_userinfo( 'user' => $u );
-    return if $twu->protected;
+    return if ! $twu || $twu->protected;
 
     if (my $u_system = LJ::load_user('system')) {
         unless ($u_system->rate_log('twitter_digest', 1)) {

Tags: ailyin, andy, ljcom, 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