From: Zach Copley Date: Thu, 11 Dec 2008 20:36:59 +0000 (-0500) Subject: Fix bad arguments that were throwing PHP warnings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64c57b7c7750e237e67f13d5dd4ca4f049f0f1ff;p=quix0rs-gnu-social.git Fix bad arguments that were throwing PHP warnings darcs-hash:20081211203659-7b5ce-43cfb2067c296374779a532410f186c42e8d2f99.gz --- diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index e17f23aea2..7b6598b108 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -112,7 +112,7 @@ class TwitapistatusesAction extends TwitterapiAction { $since = strtotime($this->arg('since')); - $user = $this->get_user($id, $apidata); + $user = $this->get_user(NULL, $apidata); $this->auth_user = $user; $profile = $user->getProfile(); diff --git a/lib/twitterapi.php b/lib/twitterapi.php index b2095dec78..4346adcd1f 100644 --- a/lib/twitterapi.php +++ b/lib/twitterapi.php @@ -76,7 +76,7 @@ class TwitterapiAction extends Action { if ($include_user) { # Don't get notice (recursive!) - $twitter_user = $this->twitter_user_array($profile, false, $user); + $twitter_user = $this->twitter_user_array($profile, false); $twitter_status['user'] = $twitter_user; }