From 712a518f5a94d77054bca499038699990fd4a5a2 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 28 Jul 2009 22:50:12 +0000 Subject: [PATCH] Port Thijs fix (rev.13790) to DEVEL: no words must be an empty array, not a string, to prevent notices when later array operations are done on $words. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13792 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/strings.php b/functions/strings.php index 944177d9..999fe1a9 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -354,7 +354,7 @@ function sqWordWrap(&$line, $wrap, $charset='') { if (isset($regs[2])) { $words = explode(' ', $regs[2]); } else { - $words = ''; + $words = array(); } $i = 0; -- 2.25.1