fix for forward as attachment from the messagelist
[squirrelmail.git] / plugins / message_details / message_details_bottom.php
index 6520a0963997ebee1c203ec33afe5129138ca39f..1593abb3a4ace3e31294d43700a28fe20458a7b9 100644 (file)
@@ -24,15 +24,15 @@ global $color, $uid_support;
 function CalcEntity($entString, $direction) {
     $result = $entString;
     if ($direction == -1) {
-         $pos = strrpos($entString,'.');
-         $result = substr($entString,0,$pos);
+        $pos = strrpos($entString,'.');
+        $result = substr($entString,0,$pos);
     }
 
     switch ($direction) {
        case 0:
           $pos = strrpos($entString,'.');
           if ($pos === false) {
-            $entString++;
+         $entString++;
             $result= $entString;
           } 
          else {