From: tokul Date: Fri, 15 Apr 2005 15:08:38 +0000 (+0000) Subject: make sure that $aFlags is set. maybe is_array() is needed too. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f2e2aa7f76156e10696874c8e289565e7813c836;p=squirrelmail.git make sure that $aFlags is set. maybe is_array() is needed too. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9304 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index e2fbfe78..15b47d17 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -3,7 +3,7 @@ /** * message_list.tpl * - * Copyright (c) 1999-2004 The SquirrelMail Project Team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Template for viewing a messages list @@ -12,6 +12,7 @@ * @package squirrelmail */ +/** add required includes */ include_once(SM_PATH . 'templates/util_message_list.php'); /* retrieve the template vars */ @@ -390,16 +391,19 @@ else '; $sEnd = ''; - } - if (in_array('deleted',$aFlags) && $aFlags['deleted']) { - $sPre = "" . $sPre; - $sEnd .= ''; - } else { - if (in_array('flagged',$aFlags) && $aFlags['flagged']) { - $sPre = "" . $sPre; + // make sure that flags column is used by end user + if (isset($aFlags)) { + if (!in_array('seen',$aFlags)) { + $sPre = ''; $sEnd = ''; + } + if (in_array('deleted',$aFlags) && $aFlags['deleted']) { + $sPre = "" . $sPre; $sEnd .= ''; + } else { + if (in_array('flagged',$aFlags) && $aFlags['flagged']) { + $sPre = "" . $sPre; + $sEnd .= ''; + } } } /**