Port Thijs fix (rev.13790) to DEVEL: no words must be an empty array, not a string...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Jul 2009 22:50:12 +0000 (22:50 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Jul 2009 22:50:12 +0000 (22:50 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13792 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 944177d9d1523a3833522df5b89159eadbd0a90e..999fe1a9727a352fc6d0ce2572375b499c1ec04d 100644 (file)
@@ -354,7 +354,7 @@ function sqWordWrap(&$line, $wrap, $charset='') {
     if (isset($regs[2])) {
         $words = explode(' ', $regs[2]);
     } else {
-        $words = '';
+        $words = array();
     }
 
     $i = 0;