From f43c35f8ff81bb002c0ed2b1610bd3866a604338 Mon Sep 17 00:00:00 2001 From: graf25 Date: Sun, 7 Apr 2002 04:10:32 +0000 Subject: [PATCH] Fix for occasions when older prefs would contain "None" for left_refresh. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2700 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_main.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/left_main.php b/src/left_main.php index f1a58680..c9b1c217 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -200,8 +200,11 @@ global $delimiter, $default_folder_prefix; // open a connection on the imap port (143) $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output - -if (isset($left_refresh) && ($left_refresh != 'none') && ($left_refresh != '')) { +/** + * Using stristr since older preferences may contain "None" and "none". + */ +if (isset($left_refresh) && ($left_refresh != '') && + !stristr($left_refresh, "none")){ $xtra = "\n\n" . "\n". "\n"; -- 2.25.1