]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
exit on error
authorEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 04:49:05 +0000 (00:49 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 18 Jul 2008 04:49:05 +0000 (00:49 -0400)
darcs-hash:20080718044905-84dde-2d447d7ec4e6d6a56075c8238f357ecb48fd295c.gz

actions/twitapifriendships.php

index c603761a2ba997985ed612a1818470f47da25a51..5d3bde8e96831f9b0b350a8897bf142da308c1a8 100644 (file)
@@ -99,6 +99,9 @@ class TwitapifriendshipsAction extends TwitterapiAction {
                        $sub->query('BEGIN');
                        $sub->delete();
                        $sub->query('COMMIT');
+               } else {
+                       $this->client_error(_('Not subscribed'));
+                       exit();
                }
 
                $type = $apidata['content-type'];