Browse Source

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.

pdontthink 16 years ago
parent
commit
79cebcc00d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/strings.php

+ 1 - 1
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;