Minor simplification.
authorantipode <antipode@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Dec 2001 21:02:53 +0000 (21:02 +0000)
committerantipode <antipode@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 27 Dec 2001 21:02:53 +0000 (21:02 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1982 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 55a53135f20eff24d3c15beba7e7dc67a56629c9..1d02ab7da142c2df7b6a5a4fcf605ee11822bbfc 100644 (file)
@@ -544,11 +544,7 @@ function showInputForm () {
          '         &nbsp;&nbsp;<TEXTAREA NAME=body ROWS=20 COLS="' .
          $editor_size . '" WRAP=HARD>' . htmlspecialchars($body);
     if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) {
          '         &nbsp;&nbsp;<TEXTAREA NAME=body ROWS=20 COLS="' .
          $editor_size . '" WRAP=HARD>' . htmlspecialchars($body);
     if ($use_signature == true && $newmail == true && !isset($from_htmladdr_search)) {
-        if ( $prefix_sig == true ) {
-            echo "\n\n-- \n" . htmlspecialchars($signature);
-        } else {
-            echo "\n\n" . htmlspecialchars($signature);
-        }
+        echo "\n\n".($prefix_sig==true? "-- \n":'').htmlspecialchars($signature);
     }
     echo '</TEXTAREA><BR>' . "\n" .
          '      </TD>' . "\n" .
     }
     echo '</TEXTAREA><BR>' . "\n" .
          '      </TD>' . "\n" .