From 862ff2d35e2c81bc8b672e1b136a723f831e00e1 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Fri, 2 Feb 2001 03:08:27 +0000 Subject: [PATCH] removed warnings git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1036 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index d23f0c37..403e44ec 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -261,28 +261,13 @@ function sqimap_get_delimiter ($imap_stream = false) { $pna = explode(')(', $pn); while (list($k, $v) = each($pna)) { - list($_, $n, $_, $d) = explode('"', $v); - $pn[$n] = $d; + $lst = explode('"', $v); + if (isset($lst[3])) { + $pn[$lst[1]] = $lst[3]; + } else { + $pn[$lst[1]] = ""; + } } -/* OS: We don't need this code right now, it is for other_users and shared folders - if (eregi('^\( *\((.*)\) *\)', $data[2], $data2)) - $on = $data2[1]; - if (eregi('^\( *\((.*)\) *\)', $data[3], $data2)) - $sn = $data2[1]; - unset($data); - $ona = explode(')(', $on); - while (list($k, $v) = each($ona)) - { - list($_, $n, $_, $d) = explode('"', $v); - $on[$n] = $d; - } - $sna = explode(')(', $sn); - while (list($k, $v) = each($sna)) - { - list($_, $n, $_, $d) = explode('"', $v); - $sn[$n] = $d; - } -*/ } $sqimap_delimiter = $pn[0]; } else { -- 2.25.1