https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid warnings in addons (#639)
[friendica-addons.git/.git]
/
showmore
/
showmore.php
diff --git
a/showmore/showmore.php
b/showmore/showmore.php
index
e39acde
..
3673c95
100644
(file)
--- a/
showmore/showmore.php
+++ b/
showmore/showmore.php
@@
-126,6
+126,8
@@
function showmore_prepare_body(\Friendica\App $a, &$hook_data)
if (get_body_length($hook_data['html']) > $chars) {
$found = true;
$shortened = trim(showmore_cutitem($hook_data['html'], $chars)) . "...";
+ } else {
+ $found = false;
}
if ($found) {