diff options
author | Evan Prodromou <evan@status.net> | 2010-03-25 13:50:49 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-03-25 13:50:49 -0400 |
commit | 920acf8d966a11b7c461c333b3a5d3c82d9c8d75 (patch) | |
tree | 396dc88352d080b5ac98f7785be18a81b7eb01e2 /classes/Notice.php | |
parent | ad608ab9add1615d6aae3fde239e54d1eb36b0ca (diff) | |
parent | a954fd65ba00328cd1a76e620113d2f639340aaf (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
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(); + } } /** |