diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-23 17:24:01 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-23 17:24:01 -0700 |
commit | 13d59e0c76b887a2bfd2e5cfcc2e0fedf728bc07 (patch) | |
tree | 362127511b5528e21c0107671f98790612775c90 /classes/Notice.php | |
parent | df8c9090c0deabe20b804e0fd0766d6b86b7968f (diff) |
fixup_deletions.php script to look for notices posted by now-deleted profiles and remove them.
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(); + } } /** |