Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit c37f752

Browse files
author
Charles Ma
committed
BUG: refs #142 Fixed dashboard
1 parent 72241cf commit c37f752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/models/base/FolderModelBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function createFolder($name, $description, $parent)
110110
}
111111

112112
// Check ifa folder with the same name already exists for the same parent
113-
if($this->getFolderExists($name, $parent))
113+
if($parent !== false && $this->getFolderExists($name, $parent))
114114
{
115115
$existingfolder = $this->getFolderExists($name, $parent);
116116
return $existingfolder;

0 commit comments

Comments
 (0)