]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix a null value in profile untag
authorEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 23:01:20 +0000 (19:01 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 10 Apr 2011 23:01:20 +0000 (19:01 -0400)
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;
             }