Fix undefined object error.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 03:43:28 +0000 (21:43 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 03:43:28 +0000 (21:43 -0600)
imp/folders.php

index 95e8aec..9a50ca5 100644 (file)
@@ -172,6 +172,7 @@ case 'rename_folder':
     if (!empty($new_names) &&
         !empty($old_names) &&
         ($iMax == count($old_names))) {
+        $imp_imap = $injector->getInstance('IMP_Imap')->getOb();
         for ($i = 0; $i < $iMax; ++$i) {
             $old_ns = $imp_imap->getNamespace($old_names[$i]);
             $new = trim($new_names[$i], $old_ns['delimiter']);