]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile_tag.php
Fix a null value in profile untag
[quix0rs-gnu-social.git] / classes / Profile_tag.php
index 17f5034ff946034d45f3e6491652918665dd3c00..d7841bd8cace76188a8bd85f357043214ce813e9 100644 (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;
             }