From aaf20aaa53e6684e503564dcc9f2ec5e3ce533f4 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 5 Aug 2009 01:45:55 -0600 Subject: [PATCH] nits --- imp/lib/Imap/Tree.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imp/lib/Imap/Tree.php b/imp/lib/Imap/Tree.php index 147dcddf1..868496328 100644 --- a/imp/lib/Imap/Tree.php +++ b/imp/lib/Imap/Tree.php @@ -1995,7 +1995,10 @@ class IMP_Imap_Tree */ public function createMailboxName($parent, $new) { - $ns_info = (empty($parent)) ? $GLOBALS['imp_imap']->defaultNamespace() : $this->_getNamespace($parent); + $ns_info = empty($parent) + ? $GLOBALS['imp_imap']->defaultNamespace() + : $this->_getNamespace($parent); + if (is_null($ns_info)) { if ($this->isNamespace($this->_tree[$parent])) { $ns_info = $this->_getNamespace($new); @@ -2013,4 +2016,5 @@ class IMP_Imap_Tree } return $mbox . $new; } + } -- 2.11.0