diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-24 13:57:20 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-24 13:57:20 -0700 |
commit | ecb009bcf5a6893b90d153be18c423dd7377796d (patch) | |
tree | a49b25af801b21aac04b62779d627221514dbb43 /classes/Notice.php | |
parent | 9fe12be41eec8132fcfa6da2dc5fad926a932286 (diff) | |
parent | a954fd65ba00328cd1a76e620113d2f639340aaf (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index f7194e339..be3e9ca2a 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -421,7 +421,9 @@ class Notice extends Memcached_DataObject } $profile = Profile::staticGet($this->profile_id); - $profile->blowNoticeCount(); + if (!empty($profile)) { + $profile->blowNoticeCount(); + } } /** |