diff --git a/lib/foldermanagement/Folder.inc b/lib/foldermanagement/Folder.inc index 6c85871..d43060e 100644 --- a/lib/foldermanagement/Folder.inc +++ b/lib/foldermanagement/Folder.inc @@ -425,13 +425,13 @@ class Folder { } /** - * Checks if a folder with the same name, description and parent exists in the database already + * Checks if a folder with the same name and parent exists in the database already */ function exists() { global $default; $sql = $default->db; $sql->query("SELECT id FROM $default->folders_table WHERE name='" . $this->sName . "' " . - "AND description = '" . $this->sDescription . "' AND parent_id=$this->iParentID"); + "AND parent_id=$this->iParentID"); if ($sql->next_record()) { return true; } else {