Skip to content

Commit 9f3db7f

Browse files
fixed
1 parent 78aeffe commit 9f3db7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/FolderController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function getAddfolder()
4040
$folder_name = $this->helper->input('name');
4141

4242
try {
43-
if (empty($folder_name)) {
43+
if ($folder_name === null || $folder_name == '') {
4444
return $this->helper->error('folder-name');
4545
} elseif ($this->lfm->setName($folder_name)->exists()) {
4646
return $this->helper->error('folder-exist');

0 commit comments

Comments
 (0)