Merge pull request #483 from MrPetovan/task/fix-scrutinizer-issues

Fix unused code in buffer, statusnet and twitter
This commit is contained in:
Michael Vogel 2018-01-04 20:59:43 +01:00 committed by GitHub
commit 007cbc881e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 9 deletions

View file

@ -637,7 +637,7 @@ function statusnet_post_hook(App $a, &$b)
$tempfile = "";
require_once "include/plaintext.php";
require_once "include/network.php";
$msgarr = plaintext($a, $b, $max_char, true, 7);
$msgarr = plaintext($b, $max_char, true, 7);
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"]))
@ -806,7 +806,7 @@ function statusnet_prepare_body(App $a, &$b)
}
}
$msgarr = plaintext($a, $item, $max_char, true, 7);
$msgarr = plaintext($item, $max_char, true, 7);
$msg = $msgarr["text"];
if (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {