From 543567e6d5b37a2ab7804f8529b2580ef9643114 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 10 Apr 2011 19:01:20 -0400 Subject: [PATCH] Fix a null value in profile untag --- classes/Profile_tag.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Profile_tag.php b/classes/Profile_tag.php index 17f5034ff9..d7841bd8ca 100644 --- a/classes/Profile_tag.php +++ b/classes/Profile_tag.php @@ -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; }