]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change fetch to find in api
authorEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 04:52:04 +0000 (00:52 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 04:52:04 +0000 (00:52 -0400)
darcs-hash:20080718045204-84dde-1fb4fe473c9dd64867920ec8e5a1b0c15661e9e6.gz

actions/twitapifriendships.php

index eaef6966c8084d1b8f2ac6b0e192323966825397..0253cb8e57a14474b24b55206364594866b85df6 100644 (file)
@@ -96,7 +96,7 @@ class TwitapifriendshipsAction extends TwitterapiAction {
                $sub->subscriber = $user->id;
                $sub->subscribed = $other->id;
                
-               if ($sub->fetch(TRUE)) {
+               if ($sub->find(TRUE)) {
                        $sub->query('BEGIN');
                        $sub->delete();
                        $sub->query('COMMIT');