diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-24 14:11:01 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-24 14:11:01 -0700 |
commit | c3ceaa893fa878d531b0af05a3a8ed367177848c (patch) | |
tree | 69373ab2bbdb6dd516487752efd8889eeed8b31e /classes/Notice.php | |
parent | 886e28aaa9e4e9a524d5b1a933a2d2a13994aec9 (diff) | |
parent | ecb009bcf5a6893b90d153be18c423dd7377796d (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 1.0.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(); + } } /** |