Only adds the title if the subject isn't completely shown.
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Aug 2001 17:06:32 +0000 (17:06 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 8 Aug 2001 17:06:32 +0000 (17:06 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1477 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index 30880ec99867ae6bdbd5db014b547bb5893e2b3b..89ae5ebaab381a666e623b06cf65f33e07a60f37 100644 (file)
                    if (! isset($search_stuff)) { $search_stuff = ''; }
                echo "<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=".$msg["ID"]."&startMessage=$startMessage&show_more=0$search_stuff\"";
                do_hook("subject_link");
-              
-              $title = get_html_translation_table(HTML_SPECIALCHARS);
-              $title = array_flip($title);
-              $title = strtr($msg['SUBJECT'], $title);
-              $title = str_replace('"', "''", $title);
 
-               echo " title=\"$title\">$flag$subject$flag_end</a>$bold_end</td>\n";
+               if ($subject != $msg['SUBJECT']) {
+                 $title = get_html_translation_table(HTML_SPECIALCHARS);
+                 $title = array_flip($title);
+                 $title = strtr($msg['SUBJECT'], $title);
+                 $title = str_replace('"', "''", $title);
+                  echo " title=\"$title\"";
+              }
+              echo ">$flag$subject$flag_end</a>$bold_end</td>\n";
                break;
             case 5: # flags
                $stuff = false;