Ignore prompt entires when parsing for imap config
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 29 Jan 2010 17:42:35 +0000 (10:42 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 29 Jan 2010 18:21:20 +0000 (11:21 -0700)
imp/lib/Imap.php

index 6e8bf39..414c269 100644 (file)
@@ -102,6 +102,12 @@ class IMP_Imap
         }
 
         if (is_null($server)) {
+            /* Remove any prompt entires (underscores in front of key). */
+            foreach (array_keys($servers) as $key) {
+                if ($key[0] == '_') {
+                    unset($servers[$key]);
+                }
+            }
             return $servers;
         }