wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r20955: LJSUP-11026: Remove some warnings from l...

Committer: gprochaev
LJSUP-11026: Remove some warnings from log file

U   trunk/cgi-bin/LJ/NotificationItem.pm
Modified: trunk/cgi-bin/LJ/NotificationItem.pm
===================================================================
--- trunk/cgi-bin/LJ/NotificationItem.pm	2012-01-23 10:04:26 UTC (rev 20954)
+++ trunk/cgi-bin/LJ/NotificationItem.pm	2012-01-23 10:22:25 UTC (rev 20955)
@@ -24,7 +24,8 @@
     my $singletonkey = $qid;
 
     $u->{_inbox_items} ||= {};
-    return $u->{_inbox_items}->{$singletonkey} if $u->{_inbox_items}->{$singletonkey};
+    return $u->{_inbox_items}->{$singletonkey}
+        if defined $u->{_inbox_items}->{$singletonkey} && $u->{_inbox_items}->{$singletonkey};
 
     my $self = {
         userid  => $u->id,

Tags: gprochaev, livejournal, pm, wisest-owl
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