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:28:43 -0700 |
commit | 5e76e0c8ac1dad9a110b005faad3c6a95d737b9b (patch) | |
tree | e8d875b1187c86c2b6fca47f1b2c518b5c2988e5 /classes/Notice.php | |
parent | 44caa3a93f452777c795006edb52ef4c5c2c4997 (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 4c7e6ab4b..1b2406fdd 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -418,7 +418,9 @@ class Notice extends Memcached_DataObject } $profile = Profile::staticGet($this->profile_id); - $profile->blowNoticeCount(); + if (!empty($profile)) { + $profile->blowNoticeCount(); + } } /** save all urls in the notice to the db |