Add checking.

        Patch by kareila. 

diffs (11 lines):

diff -r fdb51799fa25 -r a13640b18653 cgi-bin/LJ/Userpic.pm
--- a/cgi-bin/LJ/Userpic.pm     Tue Aug 18 02:37:21 2009 +0000
+++ b/cgi-bin/LJ/Userpic.pm     Tue Aug 18 14:38:30 2009 +0000
@@ -514,6 +514,7 @@ sub load_row {
 sub load_row {
     my $self = shift;
     my $u = $self->owner;
+    return unless defined $u;
     return if $u->is_expunged;
 
     # Load all of the userpics from cache, or load them from the database and 
write them to cache
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to