summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 9278654e3..1b2fe970f 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -425,7 +425,7 @@ function rc_wordwrap($string, $width=75, $break="\n", $cut=false)
if ($newlen <= $width) {
$string .= ($len ? ' ' : '').$line;
- $len += ($len ? 1 : 0) + $l;
+ $len += (1 + $l);
} else {
if ($l > $width) {
if ($cut) {