From: Evan Prodromou Date: Sun, 10 Apr 2011 23:01:20 +0000 (-0400) Subject: Fix a null value in profile untag X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=543567e6d5b37a2ab7804f8529b2580ef9643114;p=quix0rs-gnu-social.git Fix a null value in profile untag --- 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; }