summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-08 06:54:34 +0000
committeralecpl <alec@alec.pl>2009-06-08 06:54:34 +0000
commit78ebe75bce66eecfe2d6a39c0735a6f7ea390247 (patch)
tree996099be930848fa9ca2f09be17dbbe91ae2b66d /program/include/rcube_shared.inc
parent6ca8274e5a2204d5e0851b8903bde849bf92af9f (diff)
- fix rc_wordwrap() (#1485909)
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) {