Fixed stupid bug causing double lines (the same)
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 5 Sep 2002 14:58:38 +0000 (14:58 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 5 Sep 2002 14:58:38 +0000 (14:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3567 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 6b6c4a74eb36f39c2fc52e32c1869cb733018c2d..8e1042294b302687cfdc4a995ee4124e3520d991 100644 (file)
@@ -82,7 +82,9 @@ function sqUnWordWrap(&$body) {
         $CurrentSpaces = $regs[1];
         if (isset($regs[2])) {
             $CurrentRest = $regs[2];
         $CurrentSpaces = $regs[1];
         if (isset($regs[2])) {
             $CurrentRest = $regs[2];
-        }
+        } else {
+           $CurrentRest = '';
+       }
         
         if ($i == 0) {
             $PreviousSpaces = $CurrentSpaces;
         
         if ($i == 0) {
             $PreviousSpaces = $CurrentSpaces;