mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:00:16 +00:00
Merge pull request #2504 from annando/1605-share2
Avoid warning messages at "strstr"
This commit is contained in:
commit
c2a648adb2
1 changed files with 2 additions and 2 deletions
|
@ -103,9 +103,9 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false)
|
|||
|
||||
$title = htmlentities($data["title"], ENT_QUOTES, 'UTF-8', false);
|
||||
$text = htmlentities($data["text"], ENT_QUOTES, 'UTF-8', false);
|
||||
if ($plaintext or strstr($text, $title))
|
||||
if ($plaintext OR (($title != "") AND strstr($text, $title)))
|
||||
$data["title"] = $data["url"];
|
||||
elseif (strstr($title, $text)) {
|
||||
elseif (($text != "") AND strstr($title, $text)) {
|
||||
$data["text"] = $data["title"];
|
||||
$data["title"] = $data["url"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue