summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-23 17:24:01 -0700
committerBrion Vibber <brion@pobox.com>2010-03-23 17:24:01 -0700
commit13d59e0c76b887a2bfd2e5cfcc2e0fedf728bc07 (patch)
tree362127511b5528e21c0107671f98790612775c90 /classes
parentdf8c9090c0deabe20b804e0fd0766d6b86b7968f (diff)
fixup_deletions.php script to look for notices posted by now-deleted profiles and remove them.
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php4
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();
+ }
}
/**