Skip to content

Commit

Permalink
Update statuses.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Abdelaziz committed Feb 2, 2016
1 parent b7f9a2e commit 0d2d160
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/joomla/twitter/statuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function tweet($status, $in_reply_to_status_id = null, $lat = null, $long

// Set POST data.
// No need to utf8 encode statuses which are already utf8 encoded
if(utf8_is_valid($status))
if (utf8_is_valid($status))
{
$data = array('status' => $status);
}
Expand Down Expand Up @@ -517,9 +517,9 @@ public function tweetWithMedia($status, $media, $in_reply_to_status_id = null, $
{
// Set the API request path.
$path = '/statuses/update_with_media.json';

// If the status is not UTF-8 encode it
if(!utf8_is_valid($status))
if (!utf8_is_valid($status))
{
utf8_encode($status);
}
Expand Down

0 comments on commit 0d2d160

Please sign in to comment.