Fix a null value in profile untag

This commit is contained in:
Evan Prodromou 2011-04-10 19:01:20 -04:00
parent 4742a2a87f
commit 543567e6d5
1 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,9 @@ class Profile_tag extends Memcached_DataObject
Event::handle('EndUntagProfile', array($orig));
if ($result) {
$profile_list = Profile_list::pkeyGet(array('tag' => $tag, 'tagger' => $tagger));
$profile_list->taggedCount(true);
if (!empty($profile_list)) {
$profile_list->taggedCount(true);
}
self::blowCaches($tagger, $tagged);
return true;
}