From: philippe_mingo Date: Thu, 10 Jan 2002 15:17:50 +0000 (+0000) Subject: Priority stuff is not working properly. I've defaulted prioriy to normal X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=09278ebf0a2f09c476dcf9eb8ce684c69ee63936 Priority stuff is not working properly. I've defaulted prioriy to normal but it seems strange that: $priority_level = substr($message->header->priority,0,1); doesn't return a valid priority level. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2112 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/read_body.php b/src/read_body.php index bf3ce391..5ae9b032 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -419,16 +419,25 @@ if ($default_use_priority) { $priority_level = substr($message->header->priority,0,1); switch($priority_level) { - /* First, check for a higher then normal priority. */ - case "1": - case "2": $priority_string = _("High"); break; - - /* Second, check for a normal priority. */ - case "3": $priority_string = _("Normal"); break; - - /* Last, check for a lower then normal priority. */ - case "4": - case "5": $priority_string = _("Low"); break; + /* check for a higher then normal priority. */ + case '1': + case '2': + $priority_string = _("High"); + break; + + /* check for a lower then normal priority. */ + case '4': + case '5': + $priority_string = _("Low"); + break; + + /* check for a normal priority. */ + case '3': + default: + $priority_level = '3'; + $priority_string = _("Normal"); + break; + } }