removed warnings
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2001 03:08:27 +0000 (03:08 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Feb 2001 03:08:27 +0000 (03:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1036 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_general.php

index d23f0c3..403e44e 100755 (executable)
@@ -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 {