Fix $opts argument to IMP_Folder::create()
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 Jan 2011 06:44:29 +0000 (23:44 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 28 Jan 2011 17:05:53 +0000 (10:05 -0700)
imp/lib/Folder.php

index 1b89b74..b042a6a 100644 (file)
@@ -105,7 +105,7 @@ class IMP_Folder
      * @return boolean  Whether or not the folder was successfully created.
      * @throws Horde_Exception
      */
-    public function create($folder, $subscribe)
+    public function create($folder, $subscribe, array $opts = array())
     {
         global $conf, $injector, $notification;
 
@@ -136,7 +136,7 @@ class IMP_Folder
         /* Special use flags. */
         $special_use = array();
         foreach (self::$specialUse as $key => $val) {
-            if (!empty($this->_opts[$key])) {
+            if (!empty($opts[$key])) {
                 $special_use[] = $val;
             }
         }