From: Evan Prodromou <evan@status.net>
Date: Mon, 1 Mar 2010 19:17:25 +0000 (-0500)
Subject: Return empty array when no subscriptions to remote
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c3ba26bb9955ae5d924426dc0e4ff6c48b4399ad;p=quix0rs-gnu-social.git

Return empty array when no subscriptions to remote
---

diff --git a/lib/oauthstore.php b/lib/oauthstore.php
index eabe37f9fa..a6a6de7505 100644
--- a/lib/oauthstore.php
+++ b/lib/oauthstore.php
@@ -390,7 +390,7 @@ class StatusNetOAuthDataStore extends OAuthDataStore
         $sub->subscribed = $user->id;
 
         if (!$sub->find(true)) {
-            return 0;
+            return array();
         }
 
         /* Since we do not use OMB_Service_Provider’s action methods, there