diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-06-14 00:23:48 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-06-14 00:23:48 +0000 |
commit | d0eb2058a519941e205f7b0960d9a5e0707207bb (patch) | |
tree | 37ed1aa1be3c3a7a58463964ce602565c79f8cdf /actions/twitapiblocks.php | |
parent | a887d4fe8b1f5e5adc2d701384acf50cf2cf54c3 (diff) | |
parent | dbbb3a4fb558ee4372e157612f3e053a87a53a8e (diff) |
Merge branch '0.8.x' into userdesign
Conflicts:
actions/showfavorites.php
lib/action.php
Diffstat (limited to 'actions/twitapiblocks.php')
-rw-r--r-- | actions/twitapiblocks.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/actions/twitapiblocks.php b/actions/twitapiblocks.php index 8135adef3..0e3509162 100644 --- a/actions/twitapiblocks.php +++ b/actions/twitapiblocks.php @@ -17,7 +17,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -if (!defined('LACONICA')) { exit(1); } +if (!defined('LACONICA')) { + exit(1); +} require_once(INSTALLDIR.'/lib/twitterapi.php'); @@ -31,12 +33,12 @@ class TwitapiblocksAction extends TwitterapiAction $blockee = $this->get_user($apidata['api_arg'], $apidata); - if (!$blockee) { + if (empty($blockee)) { $this->clientError('Not Found', 404, $apidata['content-type']); return; } - $user = $apidata['user']; + $user = $apidata['user']; // Always the auth user if ($user->hasBlocked($blockee) || $user->block($blockee)) { $type = $apidata['content-type']; @@ -53,7 +55,7 @@ class TwitapiblocksAction extends TwitterapiAction parent::handle($args); $blockee = $this->get_user($apidata['api_arg'], $apidata); - if (!$blockee) { + if (empty($blockee)) { $this->clientError('Not Found', 404, $apidata['content-type']); return; } |