Fix undefined variable in set_folder()
This commit is contained in:
parent
c47bcc9e3f
commit
5f3c4106a4
1 changed files with 2 additions and 2 deletions
|
@ -74,9 +74,9 @@ class kolab_storage_folder
|
|||
* @param string The folder name/path
|
||||
* @param string Optional folder type if known
|
||||
*/
|
||||
public function set_folder($name, $ftype = null)
|
||||
public function set_folder($name, $type = null)
|
||||
{
|
||||
$this->type_annotation = $ftype ? $ftype : kolab_storage::folder_type($name);
|
||||
$this->type_annotation = $type ? $type : kolab_storage::folder_type($name);
|
||||
|
||||
$oldtype = $this->type;
|
||||
list($this->type, $suffix) = explode('.', $this->type_annotation);
|
||||
|
|
Loading…
Add table
Reference in a new issue