mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
pumpio: Avoiding some SQL warnings
This commit is contained in:
parent
2774d69b6a
commit
9ad282fe93
2 changed files with 10 additions and 6 deletions
|
@ -548,7 +548,7 @@ function statusnet_shortenmsg($b, $max_char) {
|
|||
$msglink = $b["plink"];
|
||||
|
||||
// If the message is short enough then don't modify it. (if the link exists in the original message)
|
||||
if ((strlen(trim($origmsg)) <= $max_char) AND (strpos($origmsg, $msglink) OR ($msglink == "")))
|
||||
if ((strlen(trim($origmsg)) <= $max_char) AND (($msglink == "") OR strpos($origmsg, $msglink)))
|
||||
return(array("msg"=>trim($origmsg), "image"=>""));
|
||||
|
||||
// If the message is short enough and contains a picture then post the picture as well
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue