*/
class ApiBareAuthAction extends ApiAuthAction
{
- /**
- * Take arguments for running
- *
- * @param array $args $_REQUEST args
- *
- * @return boolean success flag
- *
- */
- function prepare($args)
- {
- parent::prepare($args);
- return true;
- }
-
/**
* Does this API resource require authentication?
*
}
// check whether a user has been specified somehow
- $id = $this->arg('id');
- $user_id = $this->arg('user_id');
- $screen_name = $this->arg('screen_name');
-
- if (empty($id) && empty($user_id) && empty($screen_name)) {
+ if (!$this->arg('id') && !$this->arg('user_id')
+ && mb_strlen($this->arg('screen_name'))===0) {
return true;
}